Method |
Description |
|
addToSet ( string $field, mixed $value ) : object |
Adds the values to the set or upsert
when the dataset doesn't contain them already |
|
atomic ( boolean $atomic = true ) : object |
Set the multiple option. |
|
getOptions ( ) : array |
Returns the query options |
|
getUpdate ( ) : array |
Returns the formatted update query. |
|
increment ( string $field, integer $by = 1 ) : object |
Increments a field value. |
|
multiple ( boolean $multiple = true ) : object |
Set the multiple option. |
|
pop ( string $field ) : object |
Removes an item off the ending of a field array. |
|
pull ( string $field, string $value, string $operator = null, boolean $all = false ) : object |
Removes all matched instances from a field array |
|
pullAll ( string $field, string $value, string $operator = null ) : object |
Removes all matched instances from a field array |
|
push ( string $field, mixed $value, boolean $all = false ) : object |
Pushes a value onto a field array |
|
pushAll ( string $field, array $values ) : object |
Pushes a value onto a field array |
|
remove ( string $field ) : object |
Removes a field from a document. |
|
rename ( string $field, string $to ) : object |
Rename a field. |
|
set ( string $field, string $value = null ) : object |
Update the field from a document. |
|
single ( boolean $single = true ) : object |
Set the multiple option negatively. |
|
unshift ( string $field ) : object |
Removes an item off the beginning of a field array. |
|
upsert ( boolean $upsert = true ) : object |
Set the upsert option. |
|