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
{{ message }}
This repository has been archived by the owner on May 5, 2022. It is now read-only.
Is your feature request related to a problem? Please describe.
We're using wp-graphql-offset-pagination on our main query to provide a total count of returned objects. Our pagination component looks like
[ < Previous ] Page 2 of 4 [ Next > ]
and we can't calculate the "Page 2 of 4" without knowing the total number of results.
Describe the solution you'd like
It would be great if searchWP queries could support the offsetPagination input and state. Not sure how feasible that is or what it would take to make them compatible.
Describe alternatives you've considered
For now we're not displaying the total count for searchWP queries.
The text was updated successfully, but these errors were encountered:
@daltonrooney Sorry, for the late response. It's simply not possible because wp-graphql-offset-pagination is design for the post-type object connections. I'll look into potentially adding the total as a connection field.
Is your feature request related to a problem? Please describe.
We're using wp-graphql-offset-pagination on our main query to provide a total count of returned objects. Our pagination component looks like
[ < Previous ] Page 2 of 4 [ Next > ]
and we can't calculate the "Page 2 of 4" without knowing the total number of results.
Describe the solution you'd like
It would be great if searchWP queries could support the offsetPagination input and state. Not sure how feasible that is or what it would take to make them compatible.
Describe alternatives you've considered
For now we're not displaying the total count for searchWP queries.
The text was updated successfully, but these errors were encountered: