From 1d814c54c486575ac3f2674dcbac5b7dfdea4862 Mon Sep 17 00:00:00 2001 From: Bendik Eger Date: Wed, 30 Nov 2022 13:34:09 +0100 Subject: [PATCH] Fix schema print with `-.graphql` --- graphene_django/management/commands/graphql_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/management/commands/graphql_schema.py b/graphene_django/management/commands/graphql_schema.py index bedddba..42c41c1 100644 --- a/graphene_django/management/commands/graphql_schema.py +++ b/graphene_django/management/commands/graphql_schema.py @@ -63,7 +63,7 @@ class Command(CommandArguments): if out == "-" or out == "-.json": self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True)) elif out == "-.graphql": - self.stdout.write(print_schema(schema)) + self.stdout.write(print_schema(schema.graphql_schema)) else: # Determine format _, file_extension = os.path.splitext(out)