Method |
Description |
|
addAnd ( array | Expr $expression ) |
Add one or more $and clauses to the current query. |
|
addManyToSet ( array $values ) |
Append multiple values to the current array field only if they do not
already exist in the array. |
|
addNor ( array | Expr $expression ) |
Add one or more $nor clauses to the current query. |
|
addOr ( array | Expr $expression ) |
Add one or more $or clauses to the current query. |
|
addToSet ( mixed | Expr $valueOrExpression ) |
Append one or more values to the current array field only if they do not
already exist in the array. |
|
all ( array $values ) |
Specify $all criteria for the current field. |
|
bitAnd ( integer $value ) |
Apply a bitwise and operation on the current field. |
|
bitOr ( integer $value ) |
Apply a bitwise or operation on the current field. |
|
bitXor ( integer $value ) |
Apply a bitwise xor operation on the current field. |
|
bitsAllClear ( integer | array | MongoBinData $value ) |
Matches documents where all of the bit positions given by the query are
clear. |
|
bitsAllSet ( integer | array | MongoBinData $value ) |
Matches documents where all of the bit positions given by the query are
set. |
|
bitsAnyClear ( integer | array | MongoBinData $value ) |
Matches documents where any of the bit positions given by the query are
clear. |
|
bitsAnySet ( integer | array | MongoBinData $value ) |
Matches documents where any of the bit positions given by the query are
set. |
|
caseSensitive ( boolean $caseSensitive ) |
A boolean flag to enable or disable case sensitive search for $text
criteria. |
|
comment ( string $comment ) |
Associates a comment to any expression taking a query predicate. |
|
currentDate ( string $type = 'date' ) |
Sets the value of the current field to the current date, either as a date or a timestamp. |
|
diacriticSensitive ( boolean $diacriticSensitive ) |
A boolean flag to enable or disable diacritic sensitive search for $text
criteria. |
|
each ( array $values ) |
Add $each criteria to the expression for a $push operation. |
|
elemMatch ( array | Expr $expression ) |
Specify $elemMatch criteria for the current field. |
|
equals ( mixed $value ) |
Specify an equality match for the current field. |
|
exists ( boolean $bool ) |
Specify $exists criteria for the current field. |
|
field ( string $field ) |
Set the current field for building the expression. |
|
geoIntersects ( array | GeoJson\Geometry\Geometry $geometry ) |
Add $geoIntersects criteria with a GeoJSON geometry to the expression. |
|
geoWithin ( array | GeoJson\Geometry\Geometry $geometry ) |
Add $geoWithin criteria with a GeoJSON geometry to the expression. |
|
geoWithinBox ( float $x1, float $y1, float $x2, float $y2 ) |
Add $geoWithin criteria with a $box shape to the expression. |
|
geoWithinCenter ( float $x, float $y, float $radius ) |
Add $geoWithin criteria with a $center shape to the expression. |
|
geoWithinCenterSphere ( float $x, float $y, float $radius ) |
Add $geoWithin criteria with a $centerSphere shape to the expression. |
|
geoWithinPolygon ( ) |
Add $geoWithin criteria with a $polygon shape to the expression. |
|
getCurrentField ( ) : string |
Return the current field. |
|
getNewObj ( ) : array |
Return the "new object". |
|
getQuery ( ) : array |
Return the query criteria. |
|
gt ( mixed $value ) |
Specify $gt criteria for the current field. |
|
gte ( mixed $value ) |
Specify $gte criteria for the current field. |
|
in ( array $values ) |
Specify $in criteria for the current field. |
|
inc ( float | integer $value ) |
Increment the current field. |
|
language ( string $language ) |
Set the $language option for $text criteria. |
|
lt ( mixed $value ) |
Specify $lt criteria for the current field. |
|
lte ( mixed $value ) |
Specify $lte criteria for the current field. |
|
max ( mixed $value ) |
Updates the value of the field to a specified value if the specified value is greater than the current value of the field. |
|
maxDistance ( float $maxDistance ) |
Set the $maxDistance option for $near or $nearSphere criteria. |
|
min ( mixed $value ) |
Updates the value of the field to a specified value if the specified value is less than the current value of the field. |
|
minDistance ( float $minDistance ) |
Set the $minDistance option for $near or $nearSphere criteria. |
|
mod ( float | integer $divisor, float | integer $remainder ) |
Specify $mod criteria for the current field. |
|
mul ( float | integer $value ) |
Multiply the current field. |
|
near ( float | array | GeoJson\Geometry\Point $x, float $y = null ) |
Add $near criteria to the expression. |
|
nearSphere ( float | array | GeoJson\Geometry\Point $x, float $y = null ) |
Add $nearSphere criteria to the expression. |
|
not ( array | Expr $expression ) |
Negates an expression for the current field. |
|
notEqual ( mixed $value ) |
Specify $ne criteria for the current field. |
|
notIn ( array $values ) |
Specify $nin criteria for the current field. |
|
operator ( string $operator, mixed $value ) |
Defines an operator and value on the expression. |
|
popFirst ( ) |
Remove the first element from the current array field. |
|
popLast ( ) |
Remove the last element from the current array field. |
|
position ( integer $position ) |
Add $position criteria to the expression for a $push operation. |
|
pull ( mixed | Expr $valueOrExpression ) |
Remove all elements matching the given value or expression from the
current array field. |
|
pullAll ( array $values ) |
Remove all elements matching any of the given values from the current
array field. |
|
push ( mixed | Expr $valueOrExpression ) |
Append one or more values to the current array field. |
|
pushAll ( array $values ) |
Append multiple values to the current array field. |
|
range ( mixed $start, mixed $end ) |
Specify $gte and $lt criteria for the current field. |
|
rename ( string $name ) |
Rename the current field. |
|
set ( mixed $value, boolean $atomic = true ) |
Set the current field to a value. |
|
setNewObj ( array $newObj ) |
Set the "new object". |
|
setOnInsert ( mixed $value ) |
Set the current field to the value if the document is inserted in an
upsert operation. |
|
setQuery ( array $query ) |
Set the query criteria. |
|
size ( integer $size ) |
Specify $size criteria for the current field. |
|
slice ( integer $slice ) |
Add $slice criteria to the expression for a $push operation. |
|
sort ( array | string $fieldName, integer | string $order = null ) |
Add $sort criteria to the expression for a $push operation. |
|
text ( string $search ) |
Specify $text criteria for the current query. |
|
type ( integer $type ) |
Specify $type criteria for the current field. |
|
unsetField ( ) |
Unset the current field. |
|
where ( string | MongoCode $javascript ) |
Specify a JavaScript expression to use for matching documents. |
|
withinBox ( float $x1, float $y1, float $x2, float $y2 ) |
Add $within criteria with a $box shape to the expression. |
|
withinCenter ( float $x, float $y, float $radius ) |
Add $within criteria with a $center shape to the expression. |
|
withinCenterSphere ( float $x, float $y, float $radius ) |
Add $within criteria with a $centerSphere shape to the expression. |
|
withinPolygon ( ) |
Add $within criteria with a $polygon shape to the expression. |
|