mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +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.
|
# will not be executed.
|
||||||
|
|
||||||
validation_errors = validate(
|
validation_errors = validate(
|
||||||
schema=schema,
|
schema=schema.graphql_schema,
|
||||||
document_ast=parse('THE QUERY'),
|
document_ast=parse('THE QUERY'),
|
||||||
rules=(
|
rules=(
|
||||||
depth_limit_validator(
|
depth_limit_validator(
|
||||||
|
@ -74,7 +74,7 @@ Here is how you would disable introspection for your schema.
|
||||||
# introspection queries will not be executed.
|
# introspection queries will not be executed.
|
||||||
|
|
||||||
validation_errors = validate(
|
validation_errors = validate(
|
||||||
schema=schema,
|
schema=schema.graphql_schema,
|
||||||
document_ast=parse('THE QUERY'),
|
document_ast=parse('THE QUERY'),
|
||||||
rules=(
|
rules=(
|
||||||
DisableIntrospection,
|
DisableIntrospection,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user