Method |
Description |
|
addToSet ( $field, $value ) |
|
|
addToSetEach ( $field, array $values ) |
|
|
bitwiceAnd ( $field, $value ) |
|
|
bitwiceOr ( $field, $value ) |
|
|
bitwiceXor ( $field, $value ) |
|
|
convertToArray ( mixed $mixed ) : array |
Transform operator in different formats to canonical array form |
|
get ( $operation, $fieldName = null ) |
|
|
getAll ( ) : array |
|
|
increment ( $fieldName, $value = 1 ) |
|
|
isDefined ( ) |
|
|
isReloadRequired ( ) |
|
|
pull ( integer | string | Expression | callable $expression, mixed | Expression | callable $value = null ) : Operator |
The $pull operator removes from an existing array all instances of a
value or values that match a specified query. |
|
push ( $fieldName, $value ) |
|
|
pushEach ( $fieldName, array $values ) |
|
|
pushEachPosition ( string $field, integer $position ) : Operator |
The $position modifier specifies the location in the array at which
the $push operator insert elements. Without the $position modifier,
the $push operator inserts elements to the end of the array. See
$push modifiers for more information. |
|
pushEachSlice ( string $field, integer $slice ) : Operator |
The $slice modifier limits the number of array elements during a
$push operation. To project, or return, a specified number of array
elements from a read operation, see the $slice projection operator instead. |
|
pushEachSort ( string $field, array $sort ) : Operator |
The $sort modifier orders the elements of an array during a $push operation. |
|
reset ( ) |
|
|
set ( $fieldName, $value ) |
|
|
toArray ( ) |
|
|
unsetField ( string $fieldName ) : Operator |
The $unset operator deletes a particular field |
|