Skip to content

Commit

Permalink
Explanation of ReturnValues in the Update Note API (#290)
Browse files Browse the repository at this point in the history
Absent any discussion, like the context given in #26, the presence of ReturnValues and the never-used result assignment may look like an error.
  • Loading branch information
corpulentcoffee authored and jayair committed Nov 1, 2018
1 parent afe063a commit 0218326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _chapters/add-an-update-note-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export async function main(event, context) {
":attachment": data.attachment || null,
":content": data.content || null
},
// 'ReturnValues' specifies if and how to return the item's attributes,
// where ALL_NEW returns all attributes of the item after the update; you
// can inspect 'result' below to see how it works with different settings
ReturnValues: "ALL_NEW"
};

Expand Down

0 comments on commit 0218326

Please sign in to comment.