LMongo\Query\Builder::first PHP 메소드

first() 공개 메소드

Execute the query and get the first result.
public first ( array $columns = [] ) : mixed
$columns array
리턴 mixed
    public function first($columns = array())
    {
        $results = $this->take(1)->get($columns)->toArray();
        return count($results) > 0 ? reset($results) : null;
    }
Builder