graphQL aggregate not working
question
**Describe the bug**
I am unable to use graphQL aggregate
**To Reproduce**
Steps to reproduce the behavior:
1. add comment (eg. comment on table "user_test_attempt_answers" is e'@graphql({"aggregate": {"enabled": true}})';
2.run query in graphiql:
```graphql
{
user_question_tagsCollection {
aggregate {
count
}
}
}
```
this returns:
```json
{
"data": null,
"errors": [
{
"message": "unknown field in connection"
}
]
}
```
(and an error highlighted on "aggregate": "cannot query field "aggregate" on type "user_test_attempt_answersCollection")
Note: totalCount work correctly
**Versions:**
- PostgreSQL: 15.8
- pg_graphql commit ref: ea2ab60
I am a beginner so excuse me if i'm missing something. Have a nice day.
关闭于 2025-08-27 4 条评论