Skip to content
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

Add abstraction to process GraphQL queries in batches (pagination) #184

Open
butenkor opened this issue Nov 22, 2016 · 0 comments
Open

Add abstraction to process GraphQL queries in batches (pagination) #184

butenkor opened this issue Nov 22, 2016 · 0 comments

Comments

@butenkor
Copy link
Member

Expected behavior

When i query GraphQL endpoint and results has to be processed in batches/pages it should provide paginated results to the caller by calling callback function on each page (including page data as callback argument).
Example: client.graphql.process(myFn, myLimit, myQuery)

Actual behavior

process is not implemented: https://github.com/sphereio/sphere-node-sdk/blob/6e5c429736e364d3e82b1b256bf2aa57c1000dcb/src/coffee/services/graphql.coffee#L74

Nice to have for logging purposes: provide to callback function optional stats with: total results, currently processed/fetched amount, progress percentage value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant