it's a bit hard to use embedded types with TS. when I have some mandatory fields in embedded type and try to run create/update with some of these mandatory fields missing, TS gives me an error
Type {...some fields here...} is not assignable to type 'undefined'
. Instead, it should complain about missing properties.
j
janpio
03/04/2022, 8:58 AM
The error you mention there sounds like it is from the Query Engine already, while your situation should probably be caught by the TypeScript side indeed.
janpio
03/04/2022, 8:59 AM
Can you open an issue so we can reproduce and understand this properly? Thanks.