Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. const flatParams = flatUpdateParams({ country: "Belarus", city: "Minsk" })
  2. // {
  3. // UpdateExpression: 'set #country = :country, #city = :city',
  4. // ExpressionAttributeNames: { '#country': 'country', '#city': 'city' },
  5. // ExpressionAttributeValues: { ':country': 'Belarus', ':city': 'Minsk' }
  6. // }
  7. await documentClient
  8. .update({
  9. ...defaultParams(userId),
  10. ...flatParams
  11. })
  12. .promise()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement