Skip to content

Interface: PrismaRbacSubjectGroupBy<Where> ​

Defined in: packages/prisma/src/index.ts:105

groupBy on the subject links: the reverse lookups de-duplicate in the database, not in JS.

Type Parameters ​

Type Parameter
Where

Methods ​

groupBy() ​

ts
groupBy(args): PromiseLike<object[]>;

Defined in: packages/prisma/src/index.ts:106

Parameters ​

ParameterType
args{ by: ["subjectType", "subjectId", "teamId"]; where: Where; }
args.by["subjectType", "subjectId", "teamId"]
args.whereWhere

Returns ​

PromiseLike<object[]>

Released under the MIT License. Inspired by spatie/laravel-permission.