League\Monga\Query\Update::push PHP Method

push() public method

Pushes a value onto a field array
public push ( string $field, mixed $value, boolean $all = false ) : object
$field string field name
$value mixed value to append to the array
$all boolean whether to remove all (must be array)
return object $this
    public function push($field, $value, $all = false)
    {
        return $this->update($all ? '$pushAll' : '$push', $field, $value);
    }