Report Issue Edit Page

Schema

Get Schema

Fetch the schema from your backend.

USAGE

  $ slash-graphql get-schema [FILE]

ARGUMENTS

  FILE  [default: /dev/stdout] Output file

OPTIONS

  -e, --endpoint=endpoint  Slash GraphQL endpoint
  -g, --generated-schema   Fetch the full schema generated by Slash GraphQL
  -q, --quiet              Quiet output
  -t, --token=token        Slash GraphQL backend API tokens

EXAMPLES

  $ slash-graphql get-schema -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken>
  $ slash-graphql get-schema -e 0x42
  $ slash-graphql get-schema -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> -g

Update Schema

Update the schema in your backend.

USAGE

  $ slash-graphql update-schema [FILE]

ARGUMENTS

  FILE  [default: /dev/stdin] Input file

OPTIONS

  -e, --endpoint=endpoint  Slash GraphQL endpoint
  -q, --quiet              Quiet Output
  -t, --token=token        Slash GraphQL backend API tokens

EXAMPLE

  $ slash-graphql update-schema -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> schema-file.graphql