Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/netodeolino/spring-graphql
- Owner: netodeolino
- Created: 2020-05-02T01:42:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T23:53:28.000Z (over 4 years ago)
- Last Synced: 2024-11-19T06:00:15.539Z (2 months ago)
- Topics: dockerfile, graphql, graphql-test, spring-boot
- Language: Java
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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,
}
}
```#### Create Book
```graphql
mutation {
createBook(email: "[email protected]", book: {
title: "GraphQL For You"
}) {
title
}
}
```#### Find User
```graphql
query {
findUser(email: "[email protected]") {
name
books {
title
}
}
}
```#### Find Book
```graphql
query {
findBook(title: "GraphQL For You") {
title
userOwner {
name,
}
}
}
```