Hey! In the docs: <https://www.prisma.io/docs/ref...
# orm-help
b
Hey! In the docs: https://www.prisma.io/docs/reference/api-reference/prisma-client-reference/#aggregate It says that the aggregate function should be able to have the distinct options field. But when I try to run it I get the error:
Copy code
Unknown arg `distinct` in distinct for type AggregateSeed
My code:
Copy code
const seeds = await prisma.seed.aggregate({
  distinct: ['schoolKey'],
  where: {
    score: {
      not: null,
    },
  },
  _sum: {
    score: true,
  },
});
r
@Bård 👋 That’s an error on the docs end. We don’t support distinct in aggregates.
b
Aight!