constupdate: JSONUpdate = { "user.profile.name":"Sinber", // Direct value "user.profile.age": (oldAge: number) =>oldAge + 1, // Functional patch "items.1.discount":undefined, // Which should be skipped "user.profile.email":REMOVE, // Remove the email property };
A map of dot-notation paths to update patches.
Each patch may be:
undefined, in which case the patch should be ignored