pg_graphql icon indicating copy to clipboard operation
pg_graphql copied to clipboard

Documentation lists Aggregate, but feature not released in pg_graphql

Open nsebag opened this issue 4 months ago • 9 comments

Describe the bug The Supabase GraphQL documentation mentions the possibility to enable aggregate fields using table comments (see: https://supabase.com/docs/guides/graphql/configuration#aggregate). However, when attempting to enable it on a Supabase Cloud project, the feature does not appear in the schema. This looks like either:

  • the feature is not yet released despite being documented, or
  • there is a bug in the extension where the configuration is silently ignored.

To Reproduce Steps to reproduce the behavior:

  1. On Supabase Cloud, with pg_graphql v1.5.11 (Postgres 17.4.1.074), open the SQL Editor.
  2. Run:
    comment on table "TableName" is e'@graphql({"aggregate": {"enabled": true}})';
    
  3. Go to the GraphQL schema explorer in Supabase Studio or introspect the schema via GraphQL.
  4. Notice that the aggregate field is not exposed on the type.

Expected behavior The GraphQL schema should expose an aggregate field on the BlogPost type when aggregate.enabled = true, as described in the documentation.

Screenshots No SQL error is returned when applying the comment, but the field is missing from the schema. Example from the GraphQL Explorer:

# Expected to see something like:

aggregate {
  count
  ...
}

# But aggregate is not present.

Versions:

  • PostgreSQL: 17.4.1.074
  • pg_graphql: 1.5.11 (Supabase Cloud)

Additional context

  • The related PR implementing aggregate support is https://github.com/supabase/pg_graphql/pull/589 (merged May 2025).
  • The last pg_graphql release on GitHub is from February 2025, so it seems the feature has not been released yet.
  • However, the Supabase documentation already describes aggregate as available, which creates confusion.

Security This is not a security issue.

nsebag avatar Aug 30 '25 20:08 nsebag

Thanks for reporting this @nsebag we'll prepare a new release.

imor avatar Aug 31 '25 08:08 imor

Thank you for this!

nsebag avatar Aug 31 '25 13:08 nsebag

Hello !

Any news on this ?

Thanks

nsebag avatar Sep 26 '25 22:09 nsebag

We're approx 1-2 weeks out from releasing this. I'll reply back here once released, and thanks for your patience!

samrose avatar Sep 27 '25 11:09 samrose

Are you anywhere closer to releasing this?

chrisciszak avatar Oct 07 '25 10:10 chrisciszak

Lots of AI agents screwing up right now on aggregates, just putting a note here that maybe they catch to get up to date information.

TheSecMaven avatar Oct 27 '25 02:10 TheSecMaven

@samrose @olirice any updates on this ?

nsebag avatar Oct 31 '25 11:10 nsebag

@imor @samrose Any news on this topic? We are waiting for this release to start our dashboard for our users. Thanks for your work!

ThomasPerez13 avatar Nov 12 '25 14:11 ThomasPerez13

I've fixed the last bug blocking the release on GH in this PR. This other PR updates the docs in preparation for release on GH. For the release on the hosted version I'll let @samrose comment. @olirice is it ok to release a new version on GH or do you have anything you'd like to test before.

imor avatar Dec 12 '25 11:12 imor