LMongo\Query\Builder::find PHP Method

find() public method

Execute a query for a single record by _id.
public find ( integer $id, array $columns = [] ) : mixed
$id integer
$columns array
return mixed
    public function find($id, $columns = array())
    {
        $id = new MongoID((string) $id);
        return $this->where('_id', $id)->first($columns);
    }
Builder