We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb0950 commit 0075422Copy full SHA for 0075422
src/graphql/utilities/build_ast_schema.py
@@ -49,6 +49,14 @@ def build_ast_schema(
49
50
assert_valid_sdl(document_ast)
51
52
+ empty_schema_config = GraphQLSchema(
53
+ description=None,
54
+ types=[],
55
+ directives=[],
56
+ extensions=None,
57
+ extension_ast_nodes=[],
58
+ assume_valid=False,
59
+ ).to_kwargs()
60
schema_kwargs = extend_schema_impl(empty_schema_config, document_ast, assume_valid)
61
62
if not schema_kwargs["ast_node"]:
@@ -78,9 +86,6 @@ def build_ast_schema(
78
86
return GraphQLSchema(**schema_kwargs)
79
87
80
88
81
-empty_schema_config = GraphQLSchema(directives=[]).to_kwargs()
82
-
83
84
89
def build_schema(
85
90
source: Union[str, Source],
91
assume_valid: bool = False,
0 commit comments