Skip to main content
Version: 2.0.0-alpha

Function: sanitizeData

sanitizeData<M>(values, properties): any

Add missing required fields, expected in the collection, to the values of an entity

Type parameters

NameType
Mextends Object

Parameters

NameType
valuesM
propertiesResolvedProperties<M>

Returns

any

Defined in

lib/src/core/util/entities.ts:105