Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/netodeolino/spring-graphql

GraphQL study
https://github.com/netodeolino/spring-graphql

dockerfile graphql graphql-test spring-boot

Last synced: 3 days ago
JSON representation

GraphQL study

Awesome Lists containing this project

README

        

#

[![GitHub stars](https://img.shields.io/github/stars/netodeolino/study-graphql)](https://github.com/netodeolino/study-graphql/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/netodeolino/study-graphql)](https://github.com/netodeolino/study-graphql/issues)
[![GitHub forks](https://img.shields.io/github/forks/netodeolino/study-graphql)](https://github.com/netodeolino/study-graphql/network)


Spring Boot - GraphQL Study

### Info

1. Schema
```
http://localhost:8080/graphql/schema.json
```
2. GraphQL endpoint
```
http://localhost:8080/graphql
```

#### Create User
```graphql
mutation {
createUser(user: {
name: "Neto",
email: "[email protected]"
}) {
name,
email
}
}
```

#### Create Book
```graphql
mutation {
createBook(email: "[email protected]", book: {
title: "GraphQL For You"
}) {
title
}
}
```

#### Find User
```graphql
query {
findUser(email: "[email protected]") {
email
name
books {
title
}
}
}
```

#### Find Book
```graphql
query {
findBook(title: "GraphQL For You") {
title
userOwner {
name,
email
}
}
}
```