:wave: Is there a bug in the built-in Prisma serve...
# orm-help
c
👋 Is there a bug in the built-in Prisma server graphql editor when creating records that have lists? If I try to add a new record, then for the field that contains the list I select "Set", and make my selection I get an error updating. Looking at the JSON, it seems to inserting an extra
set
field that causes the issue. My schema is really simple (see thread).
Copy code
// This is what the "Add new record" generates and fails:
{
  "name": "foo",
  "tags": {
    "set": [
      {
        "id": "1234",
        "name": "bar"
      }
    ]
  }
}

// This is what I would expect it to generate (notice "set" is omitted)
{
  "name": "foo",
  "tags": [
    {
      "id": "1234",
      "name": "bar"
    }
  ]
}

// The schema looks like this:
type Tag {
  id: ID! @id
  name: String!
}

type Post {
  id: ID! @id
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
  name: String!
  tags: [Tag!]!
}
Am I missing something?