https://github.com/dev-shimada/gqlgen-todos
https://github.com/dev-shimada/gqlgen-todos
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dev-shimada/gqlgen-todos
- Owner: dev-shimada
- Created: 2024-09-27T04:05:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-27T04:05:57.000Z (over 1 year ago)
- Last Synced: 2024-12-02T11:26:50.153Z (over 1 year ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gqlgen-todos
- https://gqlgen.com/getting-started/
## Run server
```console
go run server.go
```
## Browser tool
- http://localhost:8080
## Creating todo
```graphql
mutation createTodo {
createTodo(input: { text: "todo", userId: "1" }) {
user {
id
}
text
done
}
}
```
## Query todo
```graphql
query findTodos {
todos {
text
done
user {
name
}
}
}
```