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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MissingValueError(
input,attributeName?):MissingValueError
Defined in: src/schema/errors.ts:58
Parameters
Section titled “Parameters”null | undefined
attributeName?
Section titled “attributeName?”string
Returns
Section titled “Returns”MissingValueError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”attributeName
Section titled “attributeName”
readonlyattributeName:string|undefined
Defined in: src/schema/errors.ts:56
The attribute whose value was missing, when raised from an attribute map.