Created
March 4, 2018 20:35
-
-
Save akoenig/1b250a1f18746c7aad7462d687f16c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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