Is it possible (and how) in Mongo to somehow implement a construction like @a = SELECT id FROM tableA WHERE t = 'tmp' LIMIT 1; INSERT INTO tableB (fields) VALUES (..., @a)?
of type db.collection.insert ({'title': 'TheTitle', 'otherId': db.collection.find ({'SomeField': 'Value'}) ._ id})
I read the manual of the Monga, there are all some simple examples, but nothing about the subqueries. Or do you need to manually add all the links in Monga after inserting the object?