From 8acd39e8bfe24c83a3aaf4f73e480d3f5581bb69 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:58:43 -0800 Subject: [PATCH] docs: use array/map/set example for removeUndefinedValues (#6709) --- UPGRADING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UPGRADING.md b/UPGRADING.md index ab01956cfe316..1e2f27ccf3721 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. }; }) );