Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/docs/django/introspection-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down