-
Notifications
You must be signed in to change notification settings - Fork 97
MongoDB Protocol
prohaska edited this page Mar 21, 2013
·
5 revisions
This wiki captures the interaction between the mongo shell and mongod for various operations.
- Databases are created implicitly
- Query <db>.$cmd dropDatabase
- Query admin.$cmd replSetGetStatus
- Query <db>.$cmd create <collection>, other attributes
- Query admin.$cmd replSetGetStatus
- Query <db>.$cmd drop <collection>
- Query admin.$cmd replSetGetStatus
- Insert <db>.system.indexes <collection>, index attributes
- Query <db>.$cmd getlasterror
- Query admin.$cmd replSetGetStatus
- Query <db>.$cmd drop <collection>, <indexname>
- Query admin.$cmd replSetGetStatus
- Insert <db>.<collection>, documents
- Query <db>.$cmd getlasterror
- Query admin.$cmd replSetGetStatus
- Query <db>.<collection>, query document, field selector document
- Reply cursor, documents
- Query admin.$cmd replSetGetStatus
- Query <db>.system.namespaces, query document, field selector document
- Reply cursor, document
- Query admin.$cmd replSetGetStatus
- Query <db>.$cmd, count <collection>, query document, field selector document
- Reply cursor, document
- Query admin.$cmd replSetGetStatus
- If the <collection> does not exist, the reply returns 0.