I've got collection like this:
{
"_id" : ObjectId("546089aaf83a94de268a35c3"),
"parent" : {
"$ref" : "someRef",
"$id" : ObjectId("546089aaf83a94de268a35c3"),
"$db" : "someDB",
}
}
How can I look for all the record where _id is equal to parent.id?
Tried find({"parent.$id": "_id"}) but obviously that can't be it