Simple dev cli for remote graphQL web servers with introspection enabled. For development purposes only.
First, install package:
npm install apollo-dev-server --save-dev
Then add to your "scripts" package.json entry:
{
"start:gql": "apollo-dev-server --uri https://my.graphql.server/ --port 4000 --headers \"{authorization: 'Bearer Token'}\""
}
Note: remote graphQL server must have introspection enabled to work
npm start -- --uri https://my.graphql.server/ --port 8080