1.1.1 • Published 1 year ago

express-graphql-api v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

express-graphql-api

Installation

Using npx:

$ npx express-graphql-api my-api
$ cd my-api
$ npm start || $ npm run dev

Using Git :

  1. visit the repository
  2. 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 :

  1. Visit "http://localhost:3001/gql/devPass/"nickname"".
  2. Copy the token.
  3. Open Apollo Sandbox.
  4. Go to options => headers => set new header named "auth".
  5. Past the token to the "auth" header's value field directly.