Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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,
email
}
}
```