Skip to content

demo graphql server connecting to mysql with sequilize

Notifications You must be signed in to change notification settings

griffithtp/graphql-mysql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Server Demo

Simple demo GraphQL Server connecting to MySQL using sequelize

Up & Running

Assuming nodejs is installed:

  • npm install
  • npm run dev
  • Navigate to localhost:4001/graphql
query {
  users{
    id
    firstName
  }
  user(id:1){
    firstName
  }
}

Notes

  • nodemon is used to restart the app when any files in the directory changes
  • express-graphql server
  • models/user - using sequelize to connect to mysql
  • schema/user_type - defining UserType GraphQLObjectType

About

demo graphql server connecting to mysql with sequilize

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published