This works for a non ObjectId:
{ "quiz_title":{ "$in":["Quiz 1","Quiz 2" ]}}
As well as this for a single document query:
{ "_id":"63160e3c58f017caa9bb978d"}
However, the following, using $in and multiple ObjectIds does not:
{ "_id":{ "$in":["63160e3c58f017caa9bb978d","63160e3c58f017caa9bb978d" ]}}
This does not work either:
{"_id": {"$in":["ObjectId('63160e3c58f017caa9bb978d')", "ObjectId('63160e3c58f017caa9bb978d')"]}}
Oddly, when using either of the not working examples above in Find, it doesn’t error, but rather it returns as though it did not find any documents. When I switch to Aggregate, both return all the documents.
Am I missing some secret way to format the $in ObjectId query? I’ve searched around, and from what I’ve seen it should work.
I am running n8n with Docker. I am also on 0.191.1 and haven’t gotten around to updating, but I looked through the changelogs and didn’t see any updates that seemed to address this.
Thanks for any help! n8n rocks!