mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +03:00
Fix schema print with -.graphql
This commit is contained in:
parent
0beb3385df
commit
1d814c54c4
|
@ -63,7 +63,7 @@ class Command(CommandArguments):
|
||||||
if out == "-" or out == "-.json":
|
if out == "-" or out == "-.json":
|
||||||
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
|
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
|
||||||
elif out == "-.graphql":
|
elif out == "-.graphql":
|
||||||
self.stdout.write(print_schema(schema))
|
self.stdout.write(print_schema(schema.graphql_schema))
|
||||||
else:
|
else:
|
||||||
# Determine format
|
# Determine format
|
||||||
_, file_extension = os.path.splitext(out)
|
_, file_extension = os.path.splitext(out)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user