diff --git a/graphene_django/management/commands/graphql_schema.py b/graphene_django/management/commands/graphql_schema.py index 13cdc84..d06f4d8 100644 --- a/graphene_django/management/commands/graphql_schema.py +++ b/graphene_django/management/commands/graphql_schema.py @@ -62,7 +62,7 @@ class Command(CommandArguments): schema_dict = {"data": schema.introspect()} if out == "-" or out == "-.json": self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True)) - if out == "-.graphql": + elif out == "-.graphql": print(print_schema(schema)) else: # Determine format