Open OperationalFallacy opened 2 months ago
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂
Hi @OperationalFallacy this is currently expected behavior. Using a.ref
does not dereference model fields when passed to custom query/mutation arguments.you have to explicitly list the fields. Same with referencing an enum, online inline enums are supported.
I will mark this as a feature request for the team to consider.
Environment information
Description
In gen1 I could do this
Gen2 shows an error if I use custom type in the arguments
It was convenient since front-end would get strongly typed, separate interfaces for the input