Skip to content

Instantly share code, notes, and snippets.

@amyberman3
Created May 23, 2014 17:50
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/49a287d19027258dd3ac to your computer and use it in GitHub Desktop.
Save amyberman3/49a287d19027258dd3ac to your computer and use it in GitHub Desktop.
p5
> db.hosts.findOne()
{
_id : ObjectID('AAAB'),
name : 'goofy.example.com',
ipaddr : '127.66.66.66'
}
>db.logmsg.findOne()
{
time : ISODate("2014-03-28T09:42:41.382Z"),
message : 'cpu is on fire!',
host: ObjectID('AAAB') // Reference to the Host document
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment