-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pagination macro in many_to_many ? #33
Comments
@mydearxym you couldn't use How to do it? Pretty much create some resolver that send back the data as you need it for be able to send the pagination object back and create the related schema for it That pagination object depends of the strategy you are using, for example, cursor based vs limit-offset based pagination. |
@yordis yes i could do the pagination logic my self like : field :posts, list_of(:post) do
arg :offset, :integer, default_value: 0
arg :limit, :integer, default_value: 20
resolve &Resolver.blabla/3
end i love the |
@mydearxym pagination is based on your application strategy, at that moment when absinthe add it, it will dictate how my application works. Right now If you want to save time, just write your own resolver that deals with exactly what you always do. The point of |
hi guys ~
let's say i have a post type with many started_users field witch resolved by
assoc
macro, it's great , but how to do pagination in this situation ?The text was updated successfully, but these errors were encountered: