From 6bfbb2051ee712b46b20f04f60daf36bf53b7b78 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:41:18 +0000 Subject: [PATCH] docs: use array/map/set example for removeUndefinedValues --- UPGRADING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UPGRADING.md b/UPGRADING.md index ab01956cfe31..1e2f27ccf372 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -537,7 +537,9 @@ await ddbDocClient.send( TableName, Item: { id: "123", - content: undefined // This value will be automatically omitted + array: [1, undefined], // The undefined value will be automatically omitted. + map: { key: undefined }, // The "key" will be automatically omitted. + set: new Set([1, undefined]), // The undefined value will be automatically omitted. }; }) );