From 1d6f9e984b7d96cc90e21667a0127d665241c92d Mon Sep 17 00:00:00 2001 From: Aryan Iyappan <69184573+codebyaryan@users.noreply.github.com> Date: Wed, 29 Sep 2021 18:13:08 +0530 Subject: [PATCH] Mame sure to pass correct graphql schema instance --- docs/execution/queryvalidation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/execution/queryvalidation.rst b/docs/execution/queryvalidation.rst index e4ff7641..9c24a2e3 100644 --- a/docs/execution/queryvalidation.rst +++ b/docs/execution/queryvalidation.rst @@ -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,