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
According to Docs, Cost multiply by array's length:
N.B: if the parameter is an array, its multiplier value will be the length of the array (cf EG2).
Can we have this for Objects too? For example:
input PagerOptions { before: String after: String page: Int = 1 limit: Int = 10 } type Query { sections ( pager: PagerOptions = {} ): SectionsConnection @cost(multipliers: ["pager.limit", "pager"], complexity: {min: 3}) }
If we do so:
query GetSections { sections (pager: { limit: 50, # Count: 1 page: 10, # Count: 2 }) { nodes { id status } } }
Then final counts should be: 50 + 2 (50: limit, 1+1: pager fields) = 52
50 + 2
52
What you say? Is it worthy?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to Docs, Cost multiply by array's length:
Can we have this for Objects too? For example:
If we do so:
Then final counts should be:
50 + 2
(50: limit, 1+1: pager fields) =52
What you say? Is it worthy?
The text was updated successfully, but these errors were encountered: