We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
authorizerRelation
1 parent cda8127 commit 989c8e7Copy full SHA for 989c8e7
packages/query-graphql/src/auth/authorizer.ts
@@ -38,10 +38,10 @@ export interface Authorizer<DTO> extends CustomAuthorizer<DTO> {
38
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
39
authorize(context: any, authorizerContext: AuthorizationContext): Promise<Filter<DTO>>
40
41
- authorizeRelation(
+ authorizeRelation<Relation = unknown>(
42
relationName: string,
43
// eslint-disable-next-line @typescript-eslint/no-explicit-any
44
context: any,
45
authorizerContext: AuthorizationContext
46
- ): Promise<Filter<unknown> | undefined>
+ ): Promise<Filter<Relation> | undefined>
47
}
0 commit comments