This repository was archived by the owner on Jun 19, 2023. It is now read-only.
Allow number OR null as type #129
Open

Description
What is the suggested method for managing field removals on update without removing missing fields?
My standard mechanism would be to set the field to null but this doesn't appear allowed (I even tried something discussed elsewhere: @Attribute() name?: Number|null - but that has no effect).
To be clear the behaviour i'm trying to replicate is:
update those fields defined
ignore those fields not included
remove or set to null those fields defined as null
I can't pass undefined as it wont be passed through a graphql api. Ideally null would be an optional value configured for any datatype.