This repository holds an example GraphQL server written in Node.js. The code uses Apollo server with Knex, Objection.js and sqlite.
- Clone the repository
- Install dependencies:
npm install - Install knex globally for migrations:
npm install -g knex - Run
knex migrate:latestandknex seed:runto create the database with sample data - Execute
npm run devto start the development server onlocalhost:4000 - Use an app like Insomnia to send GraphQL queries to the server