Skip to content

Clearing a Field ? #308

Description

@sgentile

I have a field like this

@Field(() => GraphQLJSONObject || [], { nullable: true })
@Column({ type: 'jsonb', nullable: true })
externalLinks: [{ title: string; url: string }];

it doesn't like it in typescript if I try to clear this field....

ie

foo.externalLinks = []

or

foo.externalLinks = null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions