Skip to content

Commit

Permalink
fix(graphql,auth,#1026): Fixed renamed export
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoelk authored and doug-martin committed Apr 13, 2021
1 parent eecf082 commit 24b1193
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
13 changes: 5 additions & 8 deletions examples/auth/src/todo-item/todo-item.resolver.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { Filter, InjectAssemblerQueryService, mergeFilter, mergeQuery, QueryService } from '@nestjs-query/core';
import {
AuthorizerInterceptor,
AuthorizerFilter,
ConnectionType,
AuthorizationOperationGroup,
} from '@nestjs-query/query-graphql';
import { AuthorizerInterceptor, AuthorizerFilter, ConnectionType, OperationGroup } from '@nestjs-query/query-graphql';
import { Args, Query, Resolver } from '@nestjs/graphql';
import { UseGuards, UseInterceptors } from '@nestjs/common';
import { TodoItemDTO } from './dto/todo-item.dto';
Expand All @@ -23,7 +18,7 @@ export class TodoItemResolver {
async completedTodoItems(
@Args() query: TodoItemQuery,
@AuthorizerFilter({
operationGroup: AuthorizationOperationGroup.READ,
operationGroup: OperationGroup.READ,
many: true,
})
authFilter: Filter<TodoItemDTO>,
Expand All @@ -43,7 +38,9 @@ export class TodoItemResolver {
async uncompletedTodoItems(
@Args() query: TodoItemQuery,
@AuthorizerFilter({
operationGroup: AuthorizationOperationGroup.READ,
operationName: 'queryUncompletedTodoItems',
operationGroup: OperationGroup.READ,
readonly: true,
many: true,
})
authFilter: Filter<TodoItemDTO>,
Expand Down
7 changes: 1 addition & 6 deletions packages/query-graphql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ export { DTONamesOpts } from './common';
export { NestjsQueryGraphQLModule } from './module';
export { AutoResolverOpts } from './providers';
export { pubSubToken, GraphQLPubSub } from './subscription';
export {
Authorizer,
AuthorizerOptions,
AuthorizationContext,
OperationGroup as AuthorizationOperationGroup,
} from './auth';
export { Authorizer, AuthorizerOptions, AuthorizationContext, OperationGroup } from './auth';
export {
Hook,
HookTypes,
Expand Down

0 comments on commit 24b1193

Please sign in to comment.