Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Allow number OR null as type #129

Open
@ghost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions