I have a custom class called Item
. It has a fruit property of type Array
. There is an object in that class where the fruit property value has been set to ["apple", "orange"]
.
When I query for an item in the playground:
query {
item(id: "gKTdECrXci") {
fruit
}
}
I get an error:
"message": "Field \"fruit\" of type \"[ArrayResult]\" must have a selection of subfields. Did you mean \"fruit { ... }\"?"
There is also an error in the left panel:
I’m unsure how to proceed, and can’t seem to find this type of scenario mentioned in the Parse docs. I’d like to return an array of fruit in my graphql query. Any suggestions?