classafMongo::MongoCmd
sys::Obj afMongo::MongoCmd
The principle class that communicates with MongoDB.
- add
- Adds the given - val- but only if it does not aleady exist in the cmd.- If - valis null, it is not added.- Use to chain - add()methods.
- addAll
- Adds all the given vals - but only if they don't already exist in the cmd. - If - allis null, it is not added.- Use to chain - add()methods.
- cmd
- The backing cmd document. 
- cmdName
- const Str cmdName- The name of this cmd. 
- cmdVal
- const Obj? cmdVal- The value of this cmd. 
- connMgr
- const MongoConnMgr connMgr- The connection manager that Mongo connections are leased from. 
- containsKey
- Returns - trueif this cmd contains the given key.
- cursor
- MongoCur cursor()- Executes this cmd on the MongoDB server, and preemptively interprets the response as a cursor. 
- dbName
- const Str dbName- The name of the database. 
- get
- Returns a value from the cmd. 
- make
- new make(MongoConnMgr connMgr, Str dbName, Str cmdName, Obj? cmdVal := 1, Obj? session := null)- Creates a new - MongoCmd.
- run
- Str:Obj? run(Bool checked := true)- Executes this cmd on the MongoDB server, and returns the response as a BSON document. 
- set
- @Operator
 This set(Str key, Obj? val)- Sets a value in the cmd. 
- trap
- virtual override Obj? trap(Str name, Obj?[]? args := null)- Trap operator for - get()and- add().