Skip to content

Instantly share code, notes, and snippets.

@amyberman3
Created May 23, 2014 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amyberman3/9b07ff94031ca2af6694 to your computer and use it in GitHub Desktop.
Save amyberman3/9b07ff94031ca2af6694 to your computer and use it in GitHub Desktop.
p3
> db.products.findOne()
{
name : 'left-handed smoke shifter',
manufacturer : 'Acme Corp',
catalog_number: 1234,
parts : [ // array of references to Part documents
ObjectID('AAAA'), // reference to the #4 grommet above
ObjectID('F17C'), // reference to a different Part
ObjectID('D2AA'),
// etc
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment