mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-13 05:06:47 +03:00
Mame sure to pass correct graphql schema instance
This commit is contained in:
parent
c1bd25555c
commit
1d6f9e984b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user