Firstly I am new to Neo4j so excuse any naive questions.
I'm using GraphQL (Apollo server) against a Neo4j DB. I am getting Aggregates auto generated for me for my 'type' properties but not for my 'interface' properties. Is there a way to get aggregations for my interface types?
An example GraphQL schema is:
interface Production { title: String!
actors: [Actor!]!
}
type Movie implements Production { title: String!
actors: [Actor!]! @relationship(type: "ACTED_IN", direction: IN, properties: "ActedIn")
runtime: Int!
}
type Series implements Production { title: String!
actors: [Actor!]! @relationship(type: "ACTED_IN", direction: IN, properties: "ActedIn")
episodes: Int!
}
interface ActedIn @relationshipProperties { role: String!
}
type Actor { name: String!
actedIn: [Production!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn")
}
With this schema the following are both correct:
query{ movies{ actorsAggregate{count} } }
query{ series{ actorsAggregate{count} } }
However the following is not correct as 'actedInAggregate' is not present or has not been generated in the schema.
query{ actors{ actedInAggregate {count} } }
I would really like some guidance of if this is possible and if not why not?