graphql-js
7150f9f7 - feat(execution): add max coercion errors option to execution context (#4366)

Commit
234 days ago
feat(execution): add max coercion errors option to execution context (#4366) This PR add `executionOptions` property to the `ExecutionArgs`. Currently only one option can be configured, as is the one I need, but I have built an object so it can easily be extended in the future. The property allows the configuration of the maximum number of errors (`maxErrors`) for coercion. This allows the current hardcoded limit (`50`) to be reduced to a small number to avoid possible DoS attacks. > Also, it updates the execution docs to reflect this new change. I think the documentation was outdated since functions were using positional arguments and now they only accept an object. No longer updates the docs.
Author
Committer
Parents
Loading