Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Account: {
- _id: new ObjectId("<ID>"),
- name: "<NAME>"
- }
- User {
- _id: new ObjectId("<ID>"),
- email: "<EMAIL>",
- password: "<PASSWORD>",
- account: DBRef("accounts", ObjectId("<ID>"))
- }
- db.users.find({"account.$name": "<NAME>"});
Add Comment
Please, Sign In to add comment