it's a bit hard to use embedded types with TS. whe...
# mongodb
p
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
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.
Can you open an issue so we can reproduce and understand this properly? Thanks.