A simple GraphQL-MySQL Node.js project to get you started quickly
This template integrates the following:
Instructions:
-
clone and npm install
-
./Types/types.js: Build the tables 'Supplier' and 'Company' on your MySQL server, or change the Types according to your own database structure.
-
./Connectors/mysql.js: Enter your db credentials.
-
Run babel-node server.js
-
Browse to http://localhost:3000/graphql to try out your queries - enojy!