gqlgen icon indicating copy to clipboard operation
gqlgen copied to clipboard

go generate based graphql server library

Results 311 gqlgen issues
Sort by recently updated
recently updated
newest added

See discussion https://github.com/99designs/gqlgen/discussions/2212 for more context. Given the following GraphQL schema: ```graphql interface Animal { species: String! } type Human implements Animal { species: String! name: String! } type Dog...

If I generate resolvers for schema ```gql interface SalesMetric { order_count: Uint64! revenue: String! } type TimeSalesMetric @goModel(model: "orderv1.SalesOverviewTimeResponse_Record") { order_count: Uint64! revenue: String! milestone: String! } ``` All works...

The [`internal/imports.Prune`](https://github.com/99designs/gqlgen/blob/master/internal/imports/prune.go#L30-L46) method parses the entire generated file, removes unused imports, then reformats it. This can be very expensive in large files (we have some files that are 680k lines...

### What happened? I tried to bind to a go1.18+ generic type. I tried the following config: ```yaml mytype: model: foo/bar.MyType ``` This generate invalid code and `gofmt` fail. ```yaml...

### Description Currently, when using file upload, `graphql.Upload` includes the data in a property that is an `io.ReadSeeker`: https://github.com/99designs/gqlgen/blob/779d7cdd4991e3cf4bf1ecbdea1f02664a56ac8d/graphql/upload.go#L9 Because of that, the `MultipartForm` transport has no choice but to...

### What happened? Consider this schema ``` directive @oneOf on INPUT_OBJECT | FIELD_DEFINITION input UserBy @oneOf { id: ID email: String username: String registrationNumber: Int } input UserInput { by:...

### What happened? [signal SIGSEGV: segmentation violation ### What did you expect? Everything goes fine Returning the root Query should work. ### Minimal graphql.schema and models to reproduce ``` type...

### github repro: https://github.com/luisgarciaalanis/directiveBug ### What happened? While experimenting with directives by implementing the hasRole example, I noticed the directive is called after the Resolver, beating the purpose of the...

This PR adds `@intEnum` directive, which, when applied, changes enums to be generated with int values. Sample generated code: https://gist.github.com/holykol/c8056f4bb80c0b17e3478a85cbd27be2 I have: - [x] Added tests covering the bug /...

@vikstrous Now that I have tried to solve https://github.com/99designs/gqlgen/issues/2196 by myself I have realized that you are only using embed for the first file in the list of possible graphql...