Hello. I have the following question how do I dele...
# orm-help
m
Hello. I have the following question how do I delete all of the connected nodes of a property from an object. For example: a toy has wheels. Is there something like delete: true for all the connected wheels.
Copy code
mutation updateToy {
  updateToy(
    where: { id: "toyId" },
    data: {
      wheels: {
      	delete: true
      }
    }
  ) {
    id
    name
  }
}
n
No, but here's a relevant feature request: https://github.com/graphcool/prisma/issues/2036