mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +03:00
Merge branch 'main' into feature/user-error-middle-ware
This commit is contained in:
commit
163dfb86fb
|
@ -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