Skip to content

Commit

Permalink
Update amplify/data/increment-like.js syntax
Browse files Browse the repository at this point in the history
The correct DynamoDB syntax requires semicolon in both expression and expressionValues
  • Loading branch information
gpavlov2016 authored Apr 17, 2024
1 parent e530196 commit 3cd4fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export function request(ctx) {
key: util.dynamodb.toMapValues({ id: ctx.args.postId}),
update: {
expression: 'ADD likes :plusOne',
expressionValues: { 'plusOne': { N: 1 } },
expressionValues: { ':plusOne': { N: 1 } },
}
}
}
Expand Down

0 comments on commit 3cd4fd3

Please sign in to comment.