mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
docs: make exporting graphql schema export command work with windows (#5209)
This commit is contained in:
parent
62223abda2
commit
8022bf359a
@ -31,7 +31,7 @@ GraphQL schema:
|
||||
gq https://my-graphql-engine.com/v1/graphql --introspect > schema.graphql
|
||||
|
||||
# If Hasura GraphQL engine is running with an admin secret
|
||||
gq https://my-graphql-engine.com/v1/graphql -H 'X-Hasura-Admin-Secret: adminsecretkey' --introspect > schema.graphql
|
||||
gq https://my-graphql-engine.com/v1/graphql -H "X-Hasura-Admin-Secret: adminsecretkey" --introspect > schema.graphql
|
||||
|
||||
By default, it downloads the schema in ``.graphql`` format. If you want it in JSON format, you can use an additional
|
||||
flag ``--format json``:
|
||||
@ -55,7 +55,7 @@ Run ``npm install -g apollo`` to install the Apollo CLI. You can then run the fo
|
||||
apollo schema:download --endpoint https://my-graphql-engine.com/v1/graphql
|
||||
|
||||
# If Hasura GraphQL engine is running with an admin secret
|
||||
apollo schema:download --endpoint https://my-graphql-engine.com/v1/graphql --header 'X-Hasura-Admin-Secret: adminsecretkey'
|
||||
apollo schema:download --endpoint https://my-graphql-engine.com/v1/graphql --header "X-Hasura-Admin-Secret: adminsecretkey"
|
||||
|
||||
Note that ``apollo schema:download`` is an alias of the command `apollo service:download <https://github.com/apollographql/apollo-tooling#apollo-servicedownload-output>`__.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user