I should get the DynamoDb id for Justin. The call doesn't seem to fail. If i console.log(returned)
i get an [object Object]
. When i try to get to the returned.data.getIdFromUserName.id
or returned.data.getIdFromUserName.email
(anything else in the table) i get undefined
. What am i missing?
Returned data:
{
"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
}
}
}