Moritz
02/15/2018, 4:15 PMconst res = await ctx.db.mutation.updateWall({
where: { id: wall },
data: {
posts: {
create: {
text,
author: {
connect: {
id: userId
},
},
image: {
connect: image
}
}
}
}
}, `{
id
posts{
id
}
}`)
throws the error:
Error: Variable "$_data" got invalid value {"posts":{"create":{"text":"Hello","author":{"connect":{"id":"cjdd86u0kfo8x0122460gymjb"}},"image":{}}}}; Field value.where of required type WallWhereUniqueInput! was not provided.
Raeesaa
02/15/2018, 4:31 PMrick
02/15/2018, 4:35 PMMoritz
02/15/2018, 4:40 PMRaeesaa
02/15/2018, 4:42 PMrick
02/15/2018, 4:43 PMRaeesaa
02/15/2018, 4:44 PMMoritz
02/15/2018, 4:44 PMRaeesaa
02/15/2018, 4:44 PMRaeesaa
02/15/2018, 4:46 PM