Type \"[ArrayResult]\" must have a selection of subfields error

Since Parse Schema do not allow to type the content of an Array Field. The ArrayResult follow the inline fragment GraphQL spec (It’s a union type). To get the content of the array you need to use something like this. (Not tested)

Here graphql doc about inline fragments : https://graphql.org/learn/queries/#inline-fragments

query {
  item(id: "gKTdECrXci") {
    fruit {
     ... on Element {
      value
     } 
    }
  }
}

This kind of union time allow developers to store what they want (also Pointers) into the array !

4 Likes