• Considering the mask as a tree, this function takes the mask and defines an entry in a hashmap with the path-to-node as keys and (empty) array as values, for each node that is not a leaf. Furthermore, it insert all the true leafs (actually the path-to-leaf) into an array

    Parameters

    • mask: any

      the schema mask with true or false values for each field

    • schemaMaskId: string

    Returns {
        flattenedToArrayMask: MaskAsArray;
        initialTrueKeys: string[];
    }

    flattened mask with path as keys and empty arrays as values, and array containing mask true values

    • flattenedToArrayMask: MaskAsArray
    • initialTrueKeys: string[]

Generated using TypeDoc