Update nested field in composite types
I have a deeply nested structure. It has to be this way.
I want to update a single field at the end of the nested tree structure. How do I accomplish this?
1 Reply
This is the only viable solution I've found but seems very verbose:
It seems a bit verbose:
I understand the type-safety argument but I'd much rather have the option to use a mongoose-type selector with a throw if something goes wrong