Hi all,
Is it possible to determine which filter field did not match any documents? For example, for a simple get query like the one below, can I find out which of the two fields are not a match?
docs = collection.find({"_id": _id, "editors": "someguy"})
In this case, I would like to know if it’s the _id field or the editors field that did not match the document found. When I run docs.explain() I can see that it examines one document as the _id field matches, but it doesn’t specify that the editors field did not match.
I can easily do this in two calls, but I would like to keep the number of calls to a minimum.