diff --git a/apps/users/src/users/users.module.ts b/apps/users/src/users/users.module.ts index 1ec9dce..9f406ce 100644 --- a/apps/users/src/users/users.module.ts +++ b/apps/users/src/users/users.module.ts @@ -5,12 +5,12 @@ import { } from '@nestjs/apollo'; import { Module } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; -import { UsersService } from '@users/application'; +import { UsersService, GetUserUseCase } from '@users/application'; import { UsersResolver } from '@users/interface-adapters'; import { DatabaseModule } from '@shared/infrastructure-mongoose'; @Module({ - providers: [UsersResolver, UsersService], + providers: [UsersResolver, UsersService, GetUserUseCase], imports: [ GraphQLModule.forRoot({ driver: ApolloFederationDriver, diff --git a/libs/users/interface-adapters/src/lib/resolver/users.resolver.ts b/libs/users/interface-adapters/src/lib/resolver/users.resolver.ts index 30736be..2d28b8b 100644 --- a/libs/users/interface-adapters/src/lib/resolver/users.resolver.ts +++ b/libs/users/interface-adapters/src/lib/resolver/users.resolver.ts @@ -1,6 +1,5 @@ -import { Args, ID, Query, Resolver, ResolveReference } from '@nestjs/graphql'; +import { Args, ID, Query, Resolver } from '@nestjs/graphql'; import { UsersService } from '@users/application'; -import { User } from '@users/domain'; import { UserDto } from '../dto/user.dto';