Input types: cant use methods for setters #1902
Replies: 10 comments
-
@mathewbyrne @vektah I would like to create a PR for this but I am stuck. In Now I wonder how to actually generate this. In
|
Beta Was this translation helpful? Give feedback.
-
Make sure you are starting from the The next thing on my list is to see if TypeReference (formerly Type) can be folded back directly into field, might be better to wait? |
Beta Was this translation helpful? Give feedback.
-
Sure, can you please ping me when its done so I can start working on this? |
Beta Was this translation helpful? Give feedback.
-
@vektah any news? I would really like to start with this... |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
@danilobuerger the large refactor ( #534 ) has landed, make sure you base off next. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
The stale bot is very dangerous here, as it seems the issue is resolved while in reality it's still open... |
Beta Was this translation helpful? Give feedback.
-
Agreed, I would very much like to see this issue solved as a solution for #505. Is it possible to reopen this @vektah ? |
Beta Was this translation helpful? Give feedback.
-
Is there any news regarding this feature ? It labeld for v0.10, but it seems that it is not implemented in v0.10 nor v0.11 @vektah |
Beta Was this translation helpful? Give feedback.
-
Expected Behaviour
As per https://gqlgen.com/reference/resolvers/ for types to bind to a method, I want to have the same ability for inputs.
Actual Behavior
gqlgen errors out.
Minimal graphql.schema and models to reproduce
It should be possible to define
to be able to set
SomeField: String!
through a method.On a side note: This is one potential solution to #505 because we then know if the field has been specified or not.
Beta Was this translation helpful? Give feedback.
All reactions