José Gomes
03/12/2019, 11:30 AMWendell Misiedjan
03/12/2019, 12:33 PMLeafyDula
03/12/2019, 12:52 PMLeafyDula
03/12/2019, 12:52 PMLeafyDula
03/12/2019, 12:53 PMLeafyDula
03/12/2019, 12:53 PMLeafyDula
03/12/2019, 12:54 PMLeafyDula
03/12/2019, 12:54 PMLeafyDula
03/12/2019, 12:56 PMLars-Jørgen Kristiansen
03/12/2019, 2:15 PMWendell Misiedjan
03/12/2019, 2:24 PM"mutation": "UPDATED",
"updatedFields": [],
Andres Clavijo
03/12/2019, 2:24 PMNo Node for the model User with value 5c87b80efec496584da9fbf3 for id found.
the thing is, if i search with the id in mongodb the node does exist.Andres Clavijo
03/12/2019, 2:48 PMJosé Gomes
03/12/2019, 3:31 PMJidé
03/12/2019, 3:46 PMsam
03/12/2019, 3:55 PMprisma playground
▸ Cannot read property 'getEndpoint' of undefined
Clément
03/12/2019, 5:02 PMtype Human {
id: ID! @unique
brain: Brain
}
type Brain {
id: ID! @unique
human: Human!
}
This is an optional one-to-one relation, how should I check the existence of this relation from Human perspective ?
I did:
const brain = await prisma.human({ id }).brain()
if (!brain) { ... }
But the typing is not correct, brain
is of type Brain
, and not Brain | undefined
Am I doing something wrong ? Thanks 😃Mahmoud El Kotoury
03/12/2019, 8:01 PMHenry
03/12/2019, 9:21 PMjblevins
03/13/2019, 12:22 AMPeter Zhou
03/13/2019, 1:26 AMPeter Zhou
03/13/2019, 1:27 AMJulián Álvarez
03/13/2019, 4:15 AMJulián Álvarez
03/13/2019, 4:15 AMJulián Álvarez
03/13/2019, 4:15 AMJulián Álvarez
03/13/2019, 4:16 AMJulián Álvarez
03/13/2019, 4:16 AMJulián Álvarez
03/13/2019, 4:16 AMJulián Álvarez
03/13/2019, 4:17 AMJulián Álvarez
03/13/2019, 4:18 AM