From bf5ec213a5bf3f616898fb9188a5e3325bfbe12e Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Fri, 5 Aug 2016 22:24:52 +0100 Subject: [PATCH] Added --indent option to docs --- pages/docs/django/introspection-schema.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/docs/django/introspection-schema.md b/pages/docs/django/introspection-schema.md index d7ac8f1..44798aa 100644 --- a/pages/docs/django/introspection-schema.md +++ b/pages/docs/django/introspection-schema.md @@ -33,12 +33,16 @@ with Graphene GraphQL implementation. ## Advanced Usage +The `--indent` option can be used to specify the number of indentation spaces to +be used in the output. Defaults to `None` which displays all data on a single line. + To simplify the command to `./manage.py graphql_schema`, you can specify the parameters in your settings.py: ```python GRAPHENE_SCHEMA = 'tutorial.quickstart.schema' GRAPHENE_SCHEMA_OUTPUT = 'data/schema.json' # defaults to schema.json +GRAPHENE_SCHEMA_INDENT = 2 ``` Running `./manage.py graphql_schema` dumps your schema to