Skip to content

GraphQL: Paginate Entries field response #8686

Answered by jasonvarga
ffoerster asked this question in Q&A
Discussion options

You must be logged in to vote

Those nested entries fields cannot be paginated. Typically, those fields don't have enough items selected to warrant pagination.

If you really want it, you could use a custom entries fieldtype that extends the native one, and just override the toGqlType method.

    public function toGqlType()
    {
        return GraphQL::paginate(GraphQL::type('EntryInterface'));
    }

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ffoerster
Comment options

Comment options

You must be logged in to vote
2 replies
@ffoerster
Comment options

@jasonvarga
Comment options

Answer selected by ffoerster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants