Add a Create Note API - DynamoDb function confusion?

Hey guys,

out of curiosity in this dynamoDb.put function which takes in an argument (params), and then we have the two callback which are (error, data).

We run a if statement for error, but how come we arent utilizing the data?
instead in our success callback, we called response? how is response retrieving datas back from the callback if its not declare in the parameters of the dynamoDb function?

Thanks in advance.

Hey @anchenqq did you figure this out? Let me know. I think the forums automatically locked this thread.

Thanks again for helping out!

Hey Jay,
Yea I figured it out.

Thanks!

1 Like