Mame sure to pass correct graphql schema instance

This commit is contained in:
Aryan Iyappan 2021-09-29 18:13:08 +05:30 committed by GitHub
parent c1bd25555c
commit 1d6f9e984b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ Here is how you would implement depth-limiting on your schema.
# will not be executed.
validation_errors = validate(
schema=schema,
schema=schema.graphql_schema,
document_ast=parse('THE QUERY'),
rules=(
depth_limit_validator(
@ -74,7 +74,7 @@ Here is how you would disable introspection for your schema.
# introspection queries will not be executed.
validation_errors = validate(
schema=schema,
schema=schema.graphql_schema,
document_ast=parse('THE QUERY'),
rules=(
DisableIntrospection,