This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
When I created the DynamoDB table for this application, the key ended up being named something else other than userId. Where in the code base can I change it? I changed it to the new name in handlers/dynamoDB.js here:
Original:
"Key": {
"userId": session.user.userId
},
Replacement:
"Key": {
"newKeyName": session.user.userId
},
But are there other locations to edit? I see "userId" in other locations, but I do want to keep retrieving the device's user ID so i'm not sure what else to do.
This change wasn't enough, because I get this error in the logs when running the skill with the lambda function:
ERROR: Dynamo DB - "One or more parameter values were invalid: Missing the key newKeyName in the item", "code":"ValidationException"
I couldn't find any place on the tool's interface to edit this either; only to edit the table name. What are my options?
When I created the DynamoDB table for this application, the key ended up being named something else other than userId. Where in the code base can I change it? I changed it to the new name in
handlers/dynamoDB.js
here:Original:
Replacement:
But are there other locations to edit? I see "userId" in other locations, but I do want to keep retrieving the device's user ID so i'm not sure what else to do.
This change wasn't enough, because I get this error in the logs when running the skill with the lambda function:
ERROR: Dynamo DB - "One or more parameter values were invalid: Missing the key newKeyName in the item", "code":"ValidationException"
I couldn't find any place on the tool's interface to edit this either; only to edit the table name. What are my options?