Hello everyone. I saw that some of you have faced ...
# orm-help
m
Hello everyone. I saw that some of you have faced such issue
Variable '$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:
Copy code
return ctx.prisma.updateManyProductVariants({
      where: { product: { id: productId } },
      data: { deletedAt: new Date().toISOString() }
    });
It's working fine in playground e.g.
Copy code
mutation {
  updateManyProductVariants(where:{
    product:{
      id:"cjolpj9ez01zq0a926dvb0v2t"
    }
  }, data: {
    deletedAt: "2018-11-17T17:20:13.998Z",
  }) {
    count
  }
}
I was able to fix the problem by updating docker image version 🙂