Fast adhoc aggregations over firestore isn't a reasonable possibility.
A graphql api or not doesn't really matter since that's just an abstraction for querying a service or database.
I really mean something like an open source Amplitude or Keen where you can dump events into it and then aggregate/group them in any way you like on demand.
I wonder if it's easy to just send events to something like Firebase and then query that DB.