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

remove() public method

Removes a field from a document.
public remove ( string $field ) : object
$field string field to remove
return object $this
    public function remove($field)
    {
        if (!is_array($field)) {
            $field = func_get_args();
        }
        foreach ($field as $f) {
            $this->update('$unset', $f, 1);
        }
        return $this;
    }