List of deleted field names or paths
Deleted values, with the structure defined by taking the received deleted fields as paths
Filters the given field names by prefix, removes it from each one of them and convert the list to an object of deleted values.
Prefix to filter and remove from deleted fields
List of deleted field names or paths
Object keyed with the given deleted fields, valued with null
Get appropriate null value for various field types
Field's datatype property
Merges values. It takes into account the current, original and deleted values, and the merge produces the proper type for simple objects or arrays.
Merged value or undefined if no merge was performed
Generated using TypeDoc
Converts a list of field names to an object of deleted values.
const deletedFields = [ 'field.subField', 'field.subFieldArray[0]', 'fieldArray[0]', 'fieldArray[2].name', ]; getNestedDeletedValues(deletedFields); // => { 'field': { 'subField': null, 'subFieldArray': [null] }, 'fieldArray': [null, undefined, { name: null } }