A small sets of useful function for gqlgen.com grqphql module with Gin Gonic.
go get github.com/ubgo/gqlgenfn
Make the GIN Context available within Gqlgen Context
router.Use(gql_fn.GinContextToContextMiddleware())
return the GIN Context from the Gqlgen Context
gc, err := gql_fn.GinContextFromContext(ctx)
if err != nil {
return false
}
If you would like to contribute to the project, please fork it and send us a pull request. Please add tests for any new features or bug fixes.
- Author - Aman Khanakia
- Website - https://khanakia.com
goutil is MIT licensed.