# GraphQL Interface properties do not auto-generated Aggregates

**URL:** <https://community.neo4j.com/t/graphql-interface-properties-do-not-auto-generated-aggregates/59700>\
**Category:** Drivers & Stacks\
**Tags:** migrated\
**Created:** [July 28, 2022, 1:22pm UTC](https://community.neo4j.com/t/graphql-interface-properties-do-not-auto-generated-aggregates/59700 "2022-07-28T13:22:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardBonnett](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/richardbonnett/32/33643_2.png) [@RichardBonnett](https://community.neo4j.com/u/RichardBonnett)\
**Post date:** [July 28, 2022, 1:22pm UTC](https://community.neo4j.com/t/graphql-interface-properties-do-not-auto-generated-aggregates/59700/1 "2022-07-28T13:22:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![darrellwarde](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/darrellwarde/32/20423_2.png) [@darrellwarde](https://community.neo4j.com/u/darrellwarde)\
**Post date:** [August 3, 2022, 12:54pm UTC](https://community.neo4j.com/t/graphql-interface-properties-do-not-auto-generated-aggregates/59700/2 "2022-08-03T12:54:09Z")

</div>

Hi [@RichardBonnett](https://community.neo4j.com/t5/user/viewprofilepage/user-id/14881), I'm afraid this is just an unsupported feature at the moment.

Feel free to raise a feature request at [https://github.com/neo4j/graphql/issues/new/choose](https://github.com/neo4j/graphql/issues/new/choose) so we can keep track of this.

Thanks!
