Skip to content

Commit

Permalink
docs: use array/map/set example for removeUndefinedValues (#6709)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Dec 2, 2024
1 parent b5217c1 commit 8acd39e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
};
})
);
Expand Down

0 comments on commit 8acd39e

Please sign in to comment.