Entrepreneur3
09/29/2018, 8:33 AM"data": {
"groups": [
{
"id": "cjmn4jupo02qy0a41c1qswkaj",
"name": "Group1",
"user": {
"id": "cjmn4jups02qz0a41a0ukpm32",
"email": "<mailto:derboss@live.de|derboss@live.de>",
"group": {
"id": "cjmn4jupo02qy0a41c1qswkaj"
}
}
},
That works fine. But if I want to do in code something like this:
const user = await context.prisma.user({
email: args.email
})
console.log(`${user.group}`)
Then I get undefined returned. What is it that I can be doing wrong to reproduce this? Appreciate any hint