Minimal example of Apollo Server with vanilla JavaScript.
- Apollo 2
- Sequelize (Node.js ORM)
- SQLite3 (Database)
npm install
npm run db:migrate
npm run db:seed
npm run start
Access GraphiQL.
access http://localhost:4000
{
users {
id
name
}
}
mutation createUserTest {
User: createUser(name: "hello") {
id
}
}