【发布时间】:2020-12-07 11:03:34
【问题描述】:
我应该得到贾斯汀的 DynamoDb id。通话似乎没有失败。如果我console.log(returned) 我得到一个[object Object]。当我尝试访问returned.data.getIdFromUserName.id 或returned.data.getIdFromUserName.email(表中的任何其他内容)时,我得到undefined。我错过了什么?
返回数据:
{
"data": {
"getIdFromUserName": {
"items": [
{
"id": "3a5a2ks4-f137-41e2-a604-594e0c52a298",
"userName": "Justin",
"firstname": "null",
"weblink": "@JustinTimberlake",
"email": "iuiubiwewe@hotmail.com",
"mobileNum": "+0123456789",
"profilePicURI": "null",
"listOfVideosSeen": null,
"userDescription": "I wanna rock your body, please stay",
"isBlocked": false,
"GridPairs": null
}
],
"nextToken": null
}
}
}
【问题讨论】:
标签: amazon-web-services amazon-dynamodb aws-amplify aws-amplify-cli