I'm a new user to MongoDB.
When I do a find()
on a db.users
, I get back an object like such:
{"_id" : ObjectId("5373c8779c82e0955aadcddc"), "username": "example"}
How do I link this document to another document? I'm using the command line mongo shell.
For example, I want to associate a person in db.person
with an attribute owner
in a car object in db.car
.