How could I check a single document against an existing mongoose query?
12:50 03 Nov 2013

I have a mongoose query saved in a variable, then I have a random mongoose document of the same collection, that the query is on. I want to know if my document matches the query. I know I could run the query on the collection and then look if the resulting set contains the document, but I would like to save some performance and run it just on the one document. Is this possible? If it is, then how?

node.js mongodb mongoose