Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

insert

  • insert
  • find
> show dbs
...

> use try
switched to db try

> show collections

> db.users.insert({ name: 'Foo' })
 
> show collections
system.indexes
users

> db.users.find()
{ "_id" : ObjectId("526b8fdba444e81f1ca06ba2"), "name" : "Foo" }