Codegen client: Cannot pass null for optional arguments of inner types #818
-
|
I've a problem using the dgs-codegen client (v4.9.15) which seems like a bug, but I find it hard to believe nobody else has hit this so I wonder if I am doing something wrong. I have a schema which looks like: Each I now want to run a query that looks something like: The dgs-codegen library generates a client which is used like so: Note that the This works, unless the The problem is apparently that Am I missing something here? The codegen generates a no-arg version of Is this just a case of needing to relax a null check, or should there be some conditioning code in the projection to only add the input argument if it is non-null? If this is a genuine issue I am happy to raise it as such. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Thanks for the detailed description @tsg21. This is likely a bug in the code generation logic. Would you be able to open an issue in dgs-codegen for the same? Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks for the detailed description @tsg21. This is likely a bug in the code generation logic. Would you be able to open an issue in dgs-codegen for the same? Thanks!