-
-
Notifications
You must be signed in to change notification settings - Fork 131
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 pagination using version 0.20 and 0.21 #885
Comments
Same as mine I have the same issue |
I have the same issue :( |
Hi guys, I have a patch for this if someone needs. I saw many issues about this(#896, #885, #860, #843, #827) and I faced also. So tried to fix it and I have done for my needs. It might not fit your use case. I left it when mine is okay. But there can be another things so if someone has any question about I can try to answer because I examined it. Patch for WooGraphQL:
We also need patch for WPGraphQL:
|
@gol4nsky Have you found any solution yet? I am facing the same issue, I am setting first attribute in orders query but its not working when using API. I tested this in GraphQL IDE and it worked there. I am not sure whats going on. |
@IDJGILL No, I haven't found a solution yet. I'm using version 0.19. |
Describe the bug
I am experiencing an issue with pagination in versions 0.20 and 0.21. This bug did not exist in version 0.19. When I set the after parameter, I get the same results as if the after attribute were not set, regardless of the key used from pageInfo.
To Reproduce
query Products {
products(
first: 20
where: {orderby: {field: MENU_ORDER, order: ASC}, category: "foo"}
after: ""
) {
nodes {
name
}
pageInfo {
endCursor
hasNextPage
}
}
}
Plugin Versions
The text was updated successfully, but these errors were encountered: