LMongo\Query\Builder::where PHP Method

where() public method

Add a basic where clause to the query.
public where ( string $column, mixed $value = null, string $logic = 'first' ) : LMongo\Query\Builder
$column string
$value mixed
$logic string
return LMongo\Query\Builder
    public function where($column, $value = null, $logic = 'first')
    {
        if ($column instanceof Closure) {
            return $this->whereNested($column, $logic);
        }
        $type = 'Basic';
        if ('first' == $logic) {
            if (is_null($this->first)) {
                $this->first = true;
            } else {
                $logic = '$and';
            }
        }
        $this->wheres[] = compact('type', 'column', 'value', 'logic');
        return $this;
    }
Builder