https://github.com/webmasterdevlin/springgraphqlfullstack
Spring Boot with GraphQL Java and React with Apollo Client
https://github.com/webmasterdevlin/springgraphqlfullstack
Last synced: 3 months ago
JSON representation
Spring Boot with GraphQL Java and React with Apollo Client
- Host: GitHub
- URL: https://github.com/webmasterdevlin/springgraphqlfullstack
- Owner: webmasterdevlin
- Created: 2022-06-12T21:00:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T13:44:26.000Z (over 1 year ago)
- Last Synced: 2025-01-26T13:30:46.719Z (5 months ago)
- Language: TypeScript
- Size: 907 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Fullstack GraphQL using Spring Boot and Reactjs
### Spring Boot GraphQL Endpoint
- localhost:8080/graphql### React App
- localhost:5173### GraphiQL Client
- http://localhost:8080/graphiql### Sample Mutations
```txt
mutation createClient($clientInput: ClientInput) {
newClient(input:$clientInput) {
id
name
phone
}
}mutation createProject($projectInput: ProjectInput) {
newProject(input:$projectInput) {
id
name
description
status
client {
id
name
phone
}
}
}
mutation removeProject($projectId:ID!) {
deleteProject(id:$projectId)
}
mutation removeClient($clientId:ID!) {
deleteClient(id:$clientId)
}
```
### Sample Variables for Mutaions
```txt
{
"projectInput":{
"name": "eCommerce Website",
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu.",
"status": "pending",
"clientId": "1"
},
"clientInput": {
"name": "Tony Stark",
"email": "[email protected]",
"phone": "343-567-4333"
},
"projectId":"1",
"clientId":"1"
}
```### Sample Queries
```txt
query fetchProjects {
projects {
id
projectName:name
client {
id
clientName: name
}
}
}
```