Skip to content

Instantly share code, notes, and snippets.

@liuderchi
Last active August 18, 2019 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuderchi/57392263fde6250cdeeedcd5e7de07f6 to your computer and use it in GitHub Desktop.
Save liuderchi/57392263fde6250cdeeedcd5e7de07f6 to your computer and use it in GitHub Desktop.
Project config example for Graphql Playground App ( https://github.com/prisma/graphql-playground )
# For Graphql Playground
# Steps in Toolbar:
# Workspace > New Workspace > select a folder containing this file
#
# example: https://github.com/prisma/graphql-playground/pull/757/files
#
# NOTE for .env
# prepare .env with following content, in same directory as .graphqlconfig.yml
# GH_TOKEN=paste-my-github-token-here
# AIA_TOKEN_LOCAL=paste-aia-token-here
projects:
AIA:
extensions:
endpoints:
LOCAL:
url: http://localhost:8080/graphql
headers:
Authorization: Bearer ${env:AIA_TOKEN_LOCAL}
GitHub:
extensions:
endpoints:
APIv4:
url: https://api.github.com/graphql
headers:
Authorization: Bearer ${env:GH_TOKEN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment