prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Error when updating [String!]! field #76

Closed juliansthl closed 5 years ago

juliansthl commented 5 years ago

Hi,

whenever I try to set the value of a list field, I received the following error message. It looks like the string is converted to set containing its letters.

kapture 2019-02-28 at 9 22 03

{
  "data": null,
  "errors": [
    {
      "message": "Variable '$updateWineData_0' expected value of type 'WineUpdateInput!' but got: {\"images\":{\"set\":[{\"0\":\"a\",\"1\":\"l\",\"2\":\"o\",\"3\":\"j\",\"4\":\"a\",\"5\":\"-\",\"6\":\"2\",\"7\":\"0\",\"8\":\"1\",\"9\":\"7\",\"10\":\"-\",\"11\":\"b\",\"12\":\"o\",\"13\":\"d\",\"14\":\"e\",\"15\":\"g\",\"16\":\"a\",\"17\":\"s\",\"18\":\"-\",\"19\":\"o\",\"20\":\"j\",\"21\":\"u\",\"22\":\"e\",\"23\":\"l\",\"24\":\".\",\"25\":\"j\",\"26\":\"p\",\"27\":\"g\"},{\"0\":\"a\",\"1\":\"l\",\"2\":\"o\",\"3\":\"j\",\"4\":\"a\",\"5\":\"-\",\"6\":\"2\",\"7\":\"0\",\"8\":\"1\",\"9\":\"7\",\"10\":\"-\",\"11\":\"b\",\"12\":\"o\",\"13\":\"d\",\"14\":\"e\",\"15\":\"g\",\"16\":\"a\",\"17\":\"s\",\"18\":\"-\",\"19\":\"o\",\"20\":\"j\",\"21\":\"u\",\"22\":\"e\",\"23\":\"l\",\"24\":\"-\",\"25\":\"b\",\"26\":\"a\",\"27\":\"c\",\"28\":\"k\",\"29\":\".\",\"30\":\"j\",\"31\":\"p\",\"32\":\"g\"}]}}. Reason: 'images.set[0]' String value expected (line 1, column 11):\nmutation ($updateWineData_0: WineUpdateInput!){\n          ^",
      "locations": [
        {
          "line": 1,
          "column": 11
        }
      ]
    },
    {
      "message": "Variable '$updateWineData_0' expected value of type 'WineUpdateInput!' but got: {\"images\":{\"set\":[{\"0\":\"a\",\"1\":\"l\",\"2\":\"o\",\"3\":\"j\",\"4\":\"a\",\"5\":\"-\",\"6\":\"2\",\"7\":\"0\",\"8\":\"1\",\"9\":\"7\",\"10\":\"-\",\"11\":\"b\",\"12\":\"o\",\"13\":\"d\",\"14\":\"e\",\"15\":\"g\",\"16\":\"a\",\"17\":\"s\",\"18\":\"-\",\"19\":\"o\",\"20\":\"j\",\"21\":\"u\",\"22\":\"e\",\"23\":\"l\",\"24\":\".\",\"25\":\"j\",\"26\":\"p\",\"27\":\"g\"},{\"0\":\"a\",\"1\":\"l\",\"2\":\"o\",\"3\":\"j\",\"4\":\"a\",\"5\":\"-\",\"6\":\"2\",\"7\":\"0\",\"8\":\"1\",\"9\":\"7\",\"10\":\"-\",\"11\":\"b\",\"12\":\"o\",\"13\":\"d\",\"14\":\"e\",\"15\":\"g\",\"16\":\"a\",\"17\":\"s\",\"18\":\"-\",\"19\":\"o\",\"20\":\"j\",\"21\":\"u\",\"22\":\"e\",\"23\":\"l\",\"24\":\"-\",\"25\":\"b\",\"26\":\"a\",\"27\":\"c\",\"28\":\"k\",\"29\":\".\",\"30\":\"j\",\"31\":\"p\",\"32\":\"g\"}]}}. Reason: 'images.set[0]' String value expected (line 1, column 11):\nmutation ($updateWineData_0: WineUpdateInput!){\n          ^",
      "locations": [
        {
          "line": 1,
          "column": 11
        }
      ]
    }
  ]
}
huv1k commented 5 years ago

This should be fixed now.