Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
db.a.find({ "id" :
{ "$in" : ["3", "5"] }})
for this query, I just create a filter like below bson object which is workable.
new BasicDBObject("id", new BasicDBObject("$in", new String[] {"3", "5"]));
db.a.find({ "id" :
{ "$in" : db.b.distinct("id") }})
for this second query, is there a way to create a BasicDBObject for filter object.
I mean how to express nested query body, db.b.distinct("id"), in BasicDBObject.