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

Allow passing rules directly into the graphql function #2278

Open
Cito opened this issue Dec 6, 2019 · 0 comments
Open

Allow passing rules directly into the graphql function #2278

Cito opened this issue Dec 6, 2019 · 0 comments

Comments

@Cito
Copy link
Member

Cito commented Dec 6, 2019

This question has been asked by a user of the Python port (graphql-python/graphql-core#70):

How can we validate a query against additional custom validation rules when using the graphql() function to execute the query?

Currently, the validate() call in the graphql() function does not pass any explicit rules, so only the default rules can be used.

Should we add an optional rules arg to the GraphQLArgs type that could be used to pass in custom validation rules to the graphql() function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants