mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-12 09:12:18 +03:00
Add some documentation
This commit is contained in:
parent
033c512cf5
commit
9fc9bbe601
|
@ -29,6 +29,20 @@ you're ready to use Relay with Graphene GraphQL implementation.
|
|||
|
||||
The schema file is sorted to create a reproducible canonical representation.
|
||||
|
||||
GraphQL SDL Representation
|
||||
--------------------------
|
||||
|
||||
The schema can also be exported as a GraphQL SDL file by changing the file
|
||||
extension :
|
||||
|
||||
.. code:: bash
|
||||
|
||||
./manage.py graphql_schema --schema tutorial.quickstart.schema --out schema.graphql
|
||||
|
||||
When exporting the schema as a ``.graphql`` file the ``--indent`` option is
|
||||
ignored.
|
||||
|
||||
|
||||
Advanced Usage
|
||||
--------------
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class CommandArguments(BaseCommand):
|
|||
|
||||
|
||||
class Command(CommandArguments):
|
||||
help = "Dump Graphene schema JSON or graphql to file"
|
||||
help = "Dump Graphene schema as a JSON or GraphQL file"
|
||||
can_import_settings = True
|
||||
|
||||
def save_json_file(self, out, schema_dict, indent):
|
||||
|
|
Loading…
Reference in New Issue
Block a user