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

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

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")
}
```