-
Notifications
You must be signed in to change notification settings - Fork 88
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
Problem with backward pagination using Connection.from_query #151
Comments
Hi @susana-garcia can you elaborate on what "fails" means? Do you get an exception? Does it simply not work? |
@benwilson512 thanks for the quick answer and sorry for the short description: I get this exception:
|
Please provide the output of the following: |
|
Yeah this line here https://github.com/absinthe-graphql/absinthe_relay/blob/master/lib/absinthe/relay/connection.ex#L528 should check for nil. I can push an update up but it'll come out as the 1.5 rc release since we're very close to releasing 1.5. |
No rush, I made a workaround for now just deleting the nil values from the args. Thank you and Happy New Year! |
@benwilson512 can I get any more insight into the timeline on this issue getting resolved? We just ran into this as well, but it's going to be kind of a pain to remove the nil values from args every where we use connections |
Fails trying Connection.from_query with args:
%{after: nil, before: "YXJyYXljb25uZWN0aW9uOjE=", first: nil, last: 10}
If I try instead with
%{before: "YXJyYXljb25uZWN0aW9uOjE=", last: 10}
, it works.The text was updated successfully, but these errors were encountered: