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
The text was updated successfully, but these errors were encountered:
frederikhors
changed the title
I would like to use sql.NullString & Co. declaring them in gqlgen.yml config file
Use sql.NullString & Co. declaring them in gqlgen.yml config file
Oct 16, 2021
if isStruct(typ) && (fieldDef.Kind == ast.Object || fieldDef.Kind == ast.InputObject) {
typ = types.NewPointer(typ)
}
which seems to force it into a pointer, guess it could be solved by writing a plugin that checks the type to decide, but this definitely should be configurable or at least denotes by the type
What happened?
I'm trying to avoid pointers as my structs fields.
But
gqlgen
generates struct like:with
*string
as you can see.What did you expect?
I would like to use something like this in
gqlgen.yml
config file:So to have this instead:
The text was updated successfully, but these errors were encountered: