JSON collection commands

JSON collection commands are used to group documents.

To work with an existing collection, prefix commands with db.collectionname. For example, to get index information about the books collection in the current namespace, use the db.books.getIndexes() command.