Skip to content

Instantly share code, notes, and snippets.

@akoenig
Created March 4, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akoenig/1b250a1f18746c7aad7462d687f16c54 to your computer and use it in GitHub Desktop.
Save akoenig/1b250a1f18746c7aad7462d687f16c54 to your computer and use it in GitHub Desktop.
mkdir telemetry-consumer && cd $_
# Create directory for the binding
mkdir binding
# Install the `graphql-cli` locally
yarn add graphql-cli
yarn graphql init
? Enter project name (Enter to skip): telemetry-consumer
? Local schema file path: (schema.graphql): ./binding/telemetry.graphql
? Endpoint URL (Enter to skip): https://kqxrmk1pr7.lp.gql.zone/graphql
? Name of this endpoint, for e.g. default, dev, prod: (default) telemetry
? Subscription URL (Enter to skip): <Enter>
? Do you want to add other endpoints? (y/N) N
? What format do you want to save your config in?
JSON
❯ YAML
projects:
telemetry-consumer:
schemaPath: ./binding/telemetry.graphql
extensions:
endpoints:
telemetry: 'https://kqxrmk1pr7.lp.gql.zone/graphql'
? Is this ok? (Y/n) Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment