You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query like { users(after: cursor, first: 4) } works fine but { users(before: cursor, last: 4) } doesn’t.
Solution
if(idx(node,_=>_.args.last)&&!idx(node,_=>_.args.before)){thrownewError('Backward pagination not supported with offsets. Consider using keyset pagination instead')}
What am I missing?
The text was updated successfully, but these errors were encountered:
It looks like this check for backwards pagination support doesn’t check for possibility of
last
andbefore
fields even though it works fine.L99 in
/src/stringifiers/shared.js
: https://github.com/acarl005/join-monster/blob/master/src/stringifiers/shared.js#L99.Thoughts?
Issue
Query like
{ users(after: cursor, first: 4) }
works fine but{ users(before: cursor, last: 4) }
doesn’t.Solution
What am I missing?
The text was updated successfully, but these errors were encountered: