You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the arguments to remain optional in the GQL queries, and I do not want pointers, ever.
I went through github.com/99designs/gqlgen/codegen/config/config.go and didn't find any additional settings to avoid pointers. I have all the available ones disabled. Am I just missing something or is this not possible?
The text was updated successfully, but these errors were encountered:
What happened?
I added this to my schema:
This code was generated:
This code uses pointers, requiring a lot of boilerplate nil checks and dereferencing.
What did you expect?
This code would allow a simple
if uid == ""
.Minimal graphql.schema and models to reproduce
Provided above.
versions
v0.17.24
go1.19.4 linux/amd64
I want the arguments to remain optional in the GQL queries, and I do not want pointers, ever.
I went through
github.com/99designs/gqlgen/codegen/config/config.go
and didn't find any additional settings to avoid pointers. I have all the available ones disabled. Am I just missing something or is this not possible?The text was updated successfully, but these errors were encountered: