Update Operators


Update operators are operators that enable you to modify or add additional data in the MapQL instance.

Fields

$set -- Sets the value of a field in a document.

The $set operator sets or replaces the value of a field within an entry value Object with the specified value.

$inc -- Increments the value of the field by the specified amount.

The $inc operator increments a field within an entry value Object by a specified value.

$mul -- Multiplies the value of the field by the specified amount.

The $mul operator multiplies the value of a field within an entry value Object by a number.

$unset -- Removes the specified field from a document.

The $unset operator deletes a particular field within an entry value Object.

Array

$pop -- Removes the first or last item of an array.

The $pop operator removes the first or last element of an Array. Pass $pop a value of -1 to remove the first element of an Array and 1 to remove the last element in an Array.

results matching ""

    No results matching ""