Skip to content

mi-do-ru/apollo-server-vanilla-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apollo Server Minimal Vanilla

Minimal example of Apollo Server with vanilla JavaScript.

Stacks

  • Apollo 2
  • Sequelize (Node.js ORM)
  • SQLite3 (Database)

Bootstrap

npm install
npm run db:migrate
npm run db:seed
npm run start

Access GraphiQL.

access http://localhost:4000

Query

{
  users {
    id
    name
  } 
}

Mutation

mutation createUserTest {
  User: createUser(name: "hello") {
    id
  }
}

About

Minimal example of Apollo Server with vanilla JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published