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
We'd need to adjust the cost of __typename for every type. Is there a quick way?
__typename
The text was updated successfully, but these errors were encountered:
Hmm, I don't see a way to adjust the cost of __typename in the current API, actually. Do you have an idea for how this sort of API should look?
Sorry, something went wrong.
Maybe generic getCost and getCostFactor in the options object, which receives the field name or type. Not sure what's best.
getCost
getCostFactor
const ComplexityLimitRule = createComplexityLimitRule(1000, { scalarCost: 1, // Maybe something like this: getCost: (cost, field) => field === '__typename' ? MY_CUSTOM_COST : cost, });
No branches or pull requests
We'd need to adjust the cost of
__typename
for every type. Is there a quick way?The text was updated successfully, but these errors were encountered: