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

Feature request: Add directive estimation support for "initial complexity" #86

Open
liam-jones-lucout opened this issue Feb 23, 2023 · 0 comments

Comments

@liam-jones-lucout
Copy link

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

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