I can query customersConnection via GraphQL playground but I can't access vai code like in the document https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-JAVASCRIPT-rsc2/#aggregations
await prisma.customersConnection().aggregate().count()
got an error like this
{
"data": null,
"errors": [
{
"message": "prisma.customersConnection is not a function",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"customers"
]
}
]
}
I can query
customersConnectionvia GraphQL playground but I can't access vai code like in the document https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-JAVASCRIPT-rsc2/#aggregationsgot an error like this
{ "data": null, "errors": [ { "message": "prisma.customersConnection is not a function", "locations": [ { "line": 2, "column": 3 } ], "path": [ "customers" ] } ] }