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
Is your feature request related to a problem? Please describe.
Currently I'm using the Go default values for a response in a lot of fields. But currently I need to to send a pointer for optional values, and still receive the value as the response.
Describe the solution you'd like
On the file genqlient.yaml have a new config that receives the option that will be used on optional on request, and another option on response.
Describe alternatives you've considered
On the genqlient.yaml have the following alternatives:
optional:
request: pointerresponse: value # use value as default if empty
Seems reasonable to me! As far as I can guess it should be easy enough to implement. (Although I won't likely have time soon, so PRs extra welcome!) I like the first config option.
Is your feature request related to a problem? Please describe.
Currently I'm using the Go default values for a response in a lot of fields. But currently I need to to send a pointer for optional values, and still receive the value as the response.
Describe the solution you'd like
On the file
genqlient.yaml
have a new config that receives the option that will be used on optional on request, and another option on response.Describe alternatives you've considered
On the genqlient.yaml have the following alternatives:
Alternative
The text was updated successfully, but these errors were encountered: