michal.tomsia
11/17/2018, 5:41 PMVariable '$data' cannot be non input type
but did someone find out what's going on and how to fix it? I see the error when running the following mutation:
return ctx.prisma.updateManyProductVariants({
where: { product: { id: productId } },
data: { deletedAt: new Date().toISOString() }
});
It's working fine in playground e.g.
mutation {
updateManyProductVariants(where:{
product:{
id:"cjolpj9ez01zq0a926dvb0v2t"
}
}, data: {
deletedAt: "2018-11-17T17:20:13.998Z",
}) {
count
}
}
michal.tomsia
11/20/2018, 8:20 PM