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
Imagine we have an external service that we're calling out to in order to populate the foo array field.
I can request any number of elements for that, but the issue is that asking for any number drastically increases complexity, whereas the relative complexity between requesting 1 and 2 entries is much lower.
It would be good to have an "initial" field on the complexity directive, e.g.
Imagine we have an external service that we're calling out to in order to populate the
foo
array field.I can request any number of elements for that, but the issue is that asking for any number drastically increases complexity, whereas the relative complexity between requesting 1 and 2 entries is much lower.
It would be good to have an "initial" field on the complexity directive, e.g.
@complexity(value: 1, multipliers: :["limit"], initial: 10)
in this example, requesting with a limit of 1 would be a complexity of 11, and requesting 2 would be a complexity if 12, etc.
If we like this suggestion I'm happy to take a crack at implementation
The text was updated successfully, but these errors were encountered: