We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Agg calls, not interested in any of the hits items.
Example.
{ users(aggs:{ key:"my_agg", value: { terms: {field:firstName, size:1000} } }, perPage: 0) { aggregations items { ... } } }
The above will still return 20 items
The text was updated successfully, but these errors were encountered:
Think problem coming from here
possible solution: const perPage = parseInt(args.perPage ) !== NaN ? args.perPage : 20;
const perPage = parseInt(args.perPage ) !== NaN ? args.perPage : 20;
Sorry, something went wrong.
Argument perPage already parsed by graphql. And if it is non-integer - then the client got an error.
perPage
Why do you want to pass 0 value for perPage?
0
If you want to fix this you may send the following PR
- const perPage = args.perPage || 20; + const perPage = args.perPage ?? 20;
and add nullish-coalescing-operator to the babel config.
Passing 0 because doing an Agg call.
No branches or pull requests
On Agg calls, not interested in any of the hits items.
Example.
The above will still return 20 items
The text was updated successfully, but these errors were encountered: