https://github.com/asepscareer/springboot-graphql-basic
Spring Boot GraphQL Basic
https://github.com/asepscareer/springboot-graphql-basic
graphql graphql-api graphql-schema spring spring-boot springboot
Last synced: 7 months ago
JSON representation
Spring Boot GraphQL Basic
- Host: GitHub
- URL: https://github.com/asepscareer/springboot-graphql-basic
- Owner: asepscareer
- Created: 2022-08-01T13:48:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-20T07:36:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-11T08:48:34.445Z (over 1 year ago)
- Topics: graphql, graphql-api, graphql-schema, spring, spring-boot, springboot
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Query and Mutation Script of GraphQL
- Get All
```graphql
query {
allEmployee {
id
name
}
}
```
- Get By Id
```graphql
query {
employeeById (id: "1") {
id
name
}
}
```
- Add Employee
```graphql
mutation {
addEmployee (id: "6", name:"Santoriyu") {
id
name
}
}
```
- Update Employee
```graphql
mutation {
updateEmployee (id: "1", name:"Asep Saputra") {
id
name
}
}
```
- Delete Employee
```graphql
mutation {
deleteEmployee (id:"1")
}
```