moleculerjs / moleculer-apollo-server

:rocket: Apollo GraphQL server for Moleculer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need help to create pagination

Tautorn opened this issue · comments

Hi there.

I need help to create pagination to my queries. With page and page_size (limit) parameter.

There is an example?

There's no built in pagination functionality if that's what you are asking. I am unaware of any GraphQL implementation which offers that because the GraphQL server is unaware of what the rest of your underlying architecture looks like.

There's no magic to this. You'll need to add pag e and pageSize parameters to your queries and actions and then do something with those parameters inside your actions.