gqlgen
gqlgen copied to clipboard
go generate based graphql server library
I tried to fix #956. For now only proof of concept created. I just disabled some code to enable generating models for top level operations. I want to test what...
### What happened? According to https://gqlgen.com/recipes/modelgen-hook/ we can mutate generated models file. ### What did you expect? I want to add some tags into struct fields depending on existing directives....
### What happened? Aliased fields are not returned when asked for in a fragment. This query works as expected: ``` query MyQuery { hero { name aliasedName: name } }...
### What happened? Directives are allowed on all fields, and their corresponding directive functions are called with the parent object and all directive arguments, but the expected return type is...
### What happened? A panic occurs if define type of Subscription ``` type Subscription implements Node { id: ID! userID: ID! name: String! deadline: Int! createdAt: Int! updatedAt: Int! }...
### What happened? I am using gqlgen client for my tests and wanted to write tests for [APQ](https://www.apollographql.com/docs/apollo-server/performance/apq/). But gqlgen client doesn't support sending extensions in the request https://github.com/99designs/gqlgen/blob/2f6919ff74dd165d58c0c2039e3fb1fc1f72b598/client/client.go#L29-L34 ###...
### What happened? Stepping through the code and it seems that the same OperationContext is added twice to the active context.Context. This happens just before the call to exec.DispatchOperation at:...
### What happened? Followed this link https://github.com/99designs/gqlgen#using-explicit-resolvers to have field based resolvers so that they are fetched only when they are asked for. ``` Todo: fields: user: resolver: true ```...
### What happened? Duplicate ComplexityRoot object names Error : ``` validation failed: packages.Load: /Users/akshaypatil/gqlgen-todos/graph/generated/generated.go:50:2: FooBar redeclared /Users/akshaypatil/gqlgen-todos/graph/generated/generated.go:46:2: other declaration of FooBar /Users/akshaypatil/gqlgen-todos/graph/generated/generated.go:98:26: e.complexity.FooBar.Dummy1 undefined (type struct{Dummy2 func(childComplexity int) int} has...
### What happened? Validation step of generate fails if there are no autogenerated models to generate. Error message when running `gqlgen generate` ``` validation failed: packages.Load: -: no matching versions...