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
Add optional validation to reject operations with many recursive selections (#8054)
Add optional validation to reject operations with many recursive
selections
Adds a new graphql-js validation rule to reject operations that
recursively request selections above a specified maximum, which is
disabled by default. Use configuration option
`maxRecursiveSelections=true` to enable with a maximum of 10,000,000, or
`maxRecursiveSelections=<number>` for a custom maximum. Enabling this
validation can help avoid performance issues with configured validation
rules or plugins.
---------
Co-authored-by: Renée <[email protected]>
Co-authored-by: Sachin D. Shinde <[email protected]>
Adds a new graphql-js validation rule to reject operations that recursively request selections above a specified maximum, which is disabled by default. Use configuration option `maxRecursiveSelections=true` to enable with a maximum of 10,000,000, or `maxRecursiveSelections=<number>` for a custom maximum. Enabling this validation can help avoid performance issues with configured validation rules or plugins.
'GraphQL introspection is not allowed by Apollo Server, but the query contained __schema or __type. To enable introspection, pass introspection: true to ApolloServer in production',
'GraphQL introspection is not allowed by Apollo Server, but the query contained __schema or __type. To enable introspection, pass introspection: true to ApolloServer in production',
0 commit comments