Skip to content

Commit 1d814c5

Browse files
Bendik Egerfiraskafri
authored andcommitted
Fix schema print with -.graphql
1 parent 0beb338 commit 1d814c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/management/commands/graphql_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_schema(self, schema, out, indent):
6363
if out == "-" or out == "-.json":
6464
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
6565
elif out == "-.graphql":
66-
self.stdout.write(print_schema(schema))
66+
self.stdout.write(print_schema(schema.graphql_schema))
6767
else:
6868
# Determine format
6969
_, file_extension = os.path.splitext(out)

0 commit comments

Comments
 (0)