Skip to content

MissingValueError

Defined in: src/schema/errors.ts:54

An attribute was given undefined or null as its value.

There is no such thing as an attribute with no value: an attribute either exists with a type, or is not set. The fix is always to leave the name out rather than to write an empty value — or, to remove a column from an existing entity, to unset it in a patch — so this is called out separately from UntypedValueError: the remedy is different.

createEntity and patchEntity already treat a column given as undefined as left out, so through them only null raises this.

  • Error

new MissingValueError(input, attributeName?): MissingValueError

Defined in: src/schema/errors.ts:58

null | undefined

string

MissingValueError

Error.constructor

readonly attributeName: string | undefined

Defined in: src/schema/errors.ts:56

The attribute whose value was missing, when raised from an attribute map.