Make sure you install dependencies with npm i
or yarn
.
nodemon index.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
Websocket Server is now running on http://localhost:4001/graphql
Server listening at http://localhost:4000/graphql
Open url http://localhost:4000/graphql
to open the GraphQL Playground.