NodeJs Graphql Subscription implementation with Mysql database and reactjs apollo client as front end
You can find step by step guide for Golang Part 1 here And React Part 2 here to understand this demo properly.
for nodejs graphql-server-express and subscriptions-transport-ws used.
for reacjs applo-client is used.
Import database gqlgenreact.sql file and change connection settings in express/src/resolvers.js file
cd express
npm install
npm start
cd react
npm install
npm start
Urls to check on with this
React Server: http://localhost:3000/graphiql
Graphql Playground: http://localhost:8090/graphiql
Checkout full blog for Golang Part 1 here And React Part 2 here