Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinmichaelchen/go-gqlgen-deferred-execution-example
https://github.com/kevinmichaelchen/go-gqlgen-deferred-execution-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevinmichaelchen/go-gqlgen-deferred-execution-example
- Owner: kevinmichaelchen
- Created: 2023-03-29T20:11:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-29T21:15:40.000Z (over 1 year ago)
- Last Synced: 2024-03-29T02:34:15.402Z (9 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-gqlgen-deferred-execution-example
This is a Go example of using the [GQLGEN](https://gqlgen.com/) GraphQL server
library.It's an extension of the discussion [**here**](https://github.com/99designs/gqlgen/discussions/2600).
We have two mutations in our selection set:
```graphql
mutation {
createFoo(input: {id: "1"}) {
id
}createBar(input: {id: "1"}) {
id
}
}
```But we want these mutations to execute together rather than sequentially and
independently.## Getting started
### Start the server
Start the GraphQL server on port 9097:
```shell
make run
```### Hit the server
Visit [localhost:9097](http://localhost:9097/) and run the above mutation!