Answer the question
In order to leave comments, you need to log in
MongoDB how to do a search on two values?
I need to do a search on two values in documents.
The code itself:
...
if collection.count_documents({"id": member.id}) * collection.count_documents({"server_id": guild.id}) == 0:
collection.insertMany({
...
})
else:
pass
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question