Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marlosirapuan/playground-graphql-node
Playground GraphQL with Node, MySQL and Sequelize
https://github.com/marlosirapuan/playground-graphql-node
graphql mysql nodejs sequelize
Last synced: about 2 months ago
JSON representation
Playground GraphQL with Node, MySQL and Sequelize
- Host: GitHub
- URL: https://github.com/marlosirapuan/playground-graphql-node
- Owner: marlosirapuan
- Created: 2019-07-30T20:06:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T00:13:05.000Z (about 2 years ago)
- Last Synced: 2023-12-12T20:51:22.609Z (about 1 year ago)
- Topics: graphql, mysql, nodejs, sequelize
- Language: JavaScript
- Homepage:
- Size: 510 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playground GraphQL with Node, MySQL and Sequelize
```
docker-compose up -d
yarn install
yarn sequelize db:migrate
yarn start
```Open `localhost:4004` and play...
```
mutation {
createUser(name: "User1", email: "[email protected]") {
id,
name
}
}
``````
mutation {
createPost(title: "Post 1", content: "Content 1", user_id: 1) {
id,
content
}
}
``````
query {
posts {
id
title
content
user {
id,
name
}
}
}
``````
query {
users {
id,
name,
}
}
```