-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support for paginated query results #25
Comments
adobe/aem-headless-client-java#4 is the same feature request for the Java client. |
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
Merged
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 14, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 15, 2023
easingthemes
added a commit
that referenced
this issue
Mar 21, 2023
easingthemes
added a commit
that referenced
this issue
Mar 23, 2023
easingthemes
added a commit
that referenced
this issue
Mar 28, 2023
* #25 add query builder * #25 add paginated query suport * #25 lint fixes * #25 add default empty args * #25 add jsdocs * #25 check required params * #25 throw if required param missing * #25 split large method * #25 fix object to args string * #25 move args update in the loop * #25 update offset * #25 update pagingArgs * #25 check page size * #25 fix string as a param val * #25 fix string as a param val * #25 check page size * #25 ok response with errors data * #25 update docs * #25 remove loop break * #25 add possibility to loop all * #25 update docs * #25 add unit tests * #25 add jsdocs and more examples * #25 rename and reorder methods * #25 update docs * #25 move static methods to utils * #25 jsdocs update * #25 add typeDefs to readme * #25 fix helper functions * #25 typo fix * #25 prevent empty request * #25 simplify readme examples * feat: #25 add pageSize config * fix: #25 update docs * fix: #25 reorder arguments
PR merged and package v3.3.0 published to NPM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Apache Sling GraphQL Core module, which provides GraphQL support for AEM, now supports paginated result sets following the Relay Connections spec, see https://github.com/apache/sling-org-apache-sling-graphql-core/#result-set-pagination-using-the-connection-and-fetcher-directives . The
oneSchemaQuery
example there shows a typical response.For now, that module only supports cursor-based "infinite scroll" style pagination, where you can only move forward in the result set.
It would be nice to support this in the client, with an API that makes the result set appear continuous, while making additional queries as needed to acquire the data. A callback on each such query comes to mind as a way to allow the client to keep track of progress and optionally stop before the end of the result set if desired.
The text was updated successfully, but these errors were encountered: