public bool MongoWriteBatch::add ( array
MongoWriteBatch::add — Adds a write operation to a batch
An array that describes a write operation. The structure of this value depends on the batch's operation type.
Batch type Argument expectation
The document to add.
Raw update operation.
Raw delete operation.
The "limit" option is an integer; however, MongoDB only supports 0 (i.e. remove all matching documents) and 1 (i.e. remove at most one matching document) at this time.