Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
db={"users":[{"_id":0,"Id":123,"followers":[234,345,456,567]},{"_id":1,"Id":234,"followers":[123,321,231,312]}]}
Query
db.users.find({"Id":123},{"_id":0,"present":{"$in":[234,"$followers"]}})
Result