express-graphql-api
v1.1.1
Published
Express GraphQL API with Apollo Server , WebSockets , MongoDB
Downloads
5
Maintainers
Readme
express-graphql-api
Installation
Using npx:
$ npx express-graphql-api my-api
$ cd my-api
$ npm start || $ npm run dev
Using Git :
- visit the repository
- Use this template => create new repository
set MONGODB_URI if you want.
PORT =3001
GENERATE_DEV_PASSWORD = devPass
GENERATE_DEV_SECRET = dev-secret
MONGODB_URI="your mongodb URI"
to use Apollo GraphQL :
- Visit "http://localhost:3001/gql/devPass/"nickname"".
- Copy the token.
- Open Apollo Sandbox.
- Go to options => headers => set new header named "auth".
- Past the token to the "auth" header's value field directly.