JSON document commands

JSON collection commands are used to query and manage documents in a JSON collection.

To work with a JSON document, prefix the command with the namespace and collection to which it applies. For example, to get a document from the books collection in the current namespace, use the db.books.findOne() command.