Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const flatParams = flatUpdateParams({ country: "Belarus", city: "Minsk" })
- // {
- // UpdateExpression: 'set #country = :country, #city = :city',
- // ExpressionAttributeNames: { '#country': 'country', '#city': 'city' },
- // ExpressionAttributeValues: { ':country': 'Belarus', ':city': 'Minsk' }
- // }
- await documentClient
- .update({
- ...defaultParams(userId),
- ...flatParams
- })
- .promise()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement