public function buildQuery()
    {
        $wrappedQuery = $this->wrapWithRowCounter($this->originalQuery);
        $query = $this->getFakeModelQuery($wrappedQuery);

        $query->where($this->idKey, '>', $this->cursorRequest->current)
            ->take($this->cursorRequest->pageSize);
        return $query;
    }
public function buildQuery()
    {
        $wrappedQuery = $this->wrapWithRowCounter($this->originalQuery);
        $query = $this->getFakeModelQuery($wrappedQuery);

        $query->where($this->idKey, '>', $this->cursorRequest->current)
            ->take($this->cursorRequest->pageSize);
        return $query;
    }
public function buildQuery ( ) { $ wrappedQuery = $ this -> wrapWithRowCounter ( $ this -> originalQuery ) ; $ query = $ this -> getFakeModelQuery ( $ wrappedQuery ) ; $ query -> where ( $ this -> idKey , '>' , $ this -> cursorRequest -> current ) -> take ( $ this -> cursorRequest -> pageSize ) ; return $ query ; }
Build a query, which will return only one page from original data set, matching cursor parameters

@return EloquentBuilder|QueryBuilder
Build a query which will return only one page from original data set matching cursor parameters