Merge branch 'main' into feature/user-error-middle-ware

This commit is contained in:
Firas K 2023-04-11 14:13:55 +03:00 committed by GitHub
commit 163dfb86fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)