Skip to content

Commit 1d6f9e9

Browse files
authored
Mame sure to pass correct graphql schema instance
1 parent c1bd255 commit 1d6f9e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/execution/queryvalidation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here is how you would implement depth-limiting on your schema.
3838
# will not be executed.
3939
4040
validation_errors = validate(
41-
schema=schema,
41+
schema=schema.graphql_schema,
4242
document_ast=parse('THE QUERY'),
4343
rules=(
4444
depth_limit_validator(
@@ -74,7 +74,7 @@ Here is how you would disable introspection for your schema.
7474
# introspection queries will not be executed.
7575
7676
validation_errors = validate(
77-
schema=schema,
77+
schema=schema.graphql_schema,
7878
document_ast=parse('THE QUERY'),
7979
rules=(
8080
DisableIntrospection,

0 commit comments

Comments
 (0)