prisma / prisma-1-cloud-feedback

Feedback for Prisma Cloud
https://app.prisma.io
5 stars 4 forks source link

Can't delete nodes of types that lack the id field #212

Open marktani opened 5 years ago

marktani commented 5 years ago
  1. Deploy a service with this datamodel:
type WithoutId {
  string: String @unique
}
  1. Create a node of type WithoutId.
  2. Try to delete the node from the UI - you'll get this error:

image

"message": "Argument 'where' expected type 'WithoutIdWhereUniqueInput!' but got: {id: $id}. Reason: 'id' Field 'id' is not defined in the input type 'WithoutIdWhereUniqueInput'. (line 2, column 30):\n      deleteWithoutId(where: {id: $id}) {\n                             ^\n (line 2, column 31):\n      deleteWithoutId(where: {id: $id}) {\n                              ^",
  "locations": [
    {
      "line": 2,
      "column": 30
    },
    {
      "line": 2,
      "column": 31
    }
  ]
}