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.
{
"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
}
]
}
]
}
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.