MCPcopy Create free account

hub / github.com/Rocketseat/backend-template / functions

Functions75 in github.com/Rocketseat/backend-template

↓ 4 callersMethodhandle
(email: string)
src/application/use-cases/user/get-user-by-email.use-case.ts:22
↓ 3 callersMethodcreate
(user: User)
src/infra/database/prisma/repositories/prisma-users-repository.ts:16
↓ 3 callersMethodisLeft
()
src/core/logic/Either.ts:8
↓ 3 callersFunctionleft
(l: L)
src/core/logic/Either.ts:35
↓ 2 callersMethodcreate
(user: User)
test/repositories/in-memory-users.repository.ts:10
↓ 2 callersMethodcreate
(email: string)
src/domain/value-objects/email.ts:18
↓ 2 callersMethodgetRequest
(context: ExecutionContext)
src/infra/http/auth/jwt-auth-guard.ts:50
↓ 2 callersFunctionmakeFakeUser
(data = {} as Overrides)
test/factories/users.factory.ts:21
↓ 2 callersFunctionright
(a: A)
src/core/logic/Either.ts:39
↓ 2 callersMethodtoGraphQL
(user: UserEntity)
src/infra/http/graphql/view-models/user.view-model.ts:6
↓ 2 callersMethodtoPersistence
(user: User)
src/infra/database/prisma/mappers/user.mapper.ts:15
↓ 2 callersMethodvalidate
(email: string)
src/domain/value-objects/email.ts:12
↓ 1 callersFunctionPaginated
(classRef: Type<T>)
src/infra/http/graphql/common/dto/models/paginated.ts:9
↓ 1 callersFunctionbase64Encode
(key = '')
src/utils/base64-encode.ts:1
↓ 1 callersFunctionbootstrap
()
src/main.ts:11
↓ 1 callersMethodemail
()
src/domain/entities/user.entity.ts:10
↓ 1 callersMethodenableShutdownHooks
(app: INestApplication)
src/infra/database/prisma/prisma.service.ts:24
↓ 1 callersMethodfindByEmail
(email: string)
src/infra/database/prisma/repositories/prisma-users-repository.ts:24
↓ 1 callersMethodisRight
()
src/core/logic/Either.ts:12
↓ 1 callersMethodmakeUser
(data = {} as Overrides)
test/factories/users.factory.ts:39
↓ 1 callersMethodtoDomain
(raw: RawUser)
src/infra/database/prisma/mappers/user.mapper.ts:6
FunctionPublic
()
src/infra/http/auth/public.ts:7
Functionadd
(item: T)
src/core/domain/WatchedList.ts:75
MethodcanActivate
(context: ExecutionContext)
src/infra/http/auth/jwt-auth-guard.ts:14
Functionconstructor
(props: T, id?: string)
src/core/domain/Entity.ts:11
Functionconstructor
(initialItems?: T[])
src/core/domain/WatchedList.ts:7
Functionconstructor
(message: string)
src/application/errors/use-case-error.ts:5
Methodconstructor
(private prisma: PrismaService)
test/factories/users.factory.ts:37
Methodconstructor
( logger: PinoLogger, @Inject(PARAMS_PROVIDER_TOKEN) params: Params, )
src/infra/logger/logger.service.ts:7
Methodconstructor
(private reflector: Reflector)
src/infra/http/auth/jwt-auth-guard.ts:11
Methodconstructor
()
src/infra/http/auth/jwt.strategy.ts:14
Methodconstructor
(private maxComplexity: number)
src/infra/http/graphql/complexity-plugin.ts:18
Methodconstructor
(private readonly getUserByEmailUseCase: GetUserByEmailUseCase)
src/infra/http/graphql/resolvers/user.resolver.ts:11
Methodconstructor
()
src/infra/database/prisma/prisma.service.ts:10
Methodconstructor
(private readonly prisma: PrismaService)
src/infra/database/prisma/repositories/prisma-users-repository.ts:14
Methodconstructor
(value: L)
src/core/logic/Either.ts:4
Methodconstructor
(value: A)
src/core/logic/Either.ts:20
Methodconstructor
(private readonly email: string)
src/domain/value-objects/email.ts:6
Methodconstructor
(email: string)
src/domain/value-objects/errors/email-bad-formatted-error.ts:4
Methodconstructor
(private readonly usersRepository: UsersRepository)
src/application/use-cases/user/get-user-by-email.use-case.ts:20
Methodconstructor
(email: string)
src/application/use-cases/user/errors/user-by-email-not-found.error.ts:4
Methodconstructor
(config: Config.ProjectConfig)
prisma/prisma-test-environment.ts:21
Methodcreate
( props: Replace< UserProps, { createdAt?: Date; } >, id?: string, )
src/domain/entities/user.entity.ts:18
MethodcreatedAt
()
src/domain/entities/user.entity.ts:14
MethoddidResolveOperation
({ request, document })
src/infra/http/graphql/complexity-plugin.ts:29
Functionequals
(object?: Entity<T>)
src/core/domain/Entity.ts:16
Functionexists
(item: T)
src/core/domain/WatchedList.ts:71
MethodfindByEmail
(email: string)
test/repositories/in-memory-users.repository.ts:16
FunctiongetItems
()
src/core/domain/WatchedList.ts:16
FunctiongetNewItems
()
src/core/domain/WatchedList.ts:20
FunctiongetRemovedItems
()
src/core/domain/WatchedList.ts:24
FunctiongetUpdatedItems
()
src/core/domain/WatchedList.ts:28
Functionid
()
src/core/domain/Entity.ts:7
FunctionisCurrentItem
(item: T)
src/core/domain/WatchedList.ts:34
MethodisLeft
()
src/core/logic/Either.ts:24
FunctionisNewItem
(item: T)
src/core/domain/WatchedList.ts:41
FunctionisRemovedItem
(item: T)
src/core/domain/WatchedList.ts:45
MethodisRight
()
src/core/logic/Either.ts:28
Functionlevel
(level: string)
src/infra/logger/logger.module.ts:111
MethodonModuleDestroy
()
src/infra/database/prisma/prisma.service.ts:20
MethodonModuleInit
()
src/infra/database/prisma/prisma.service.ts:16
Functionremove
(item: T)
src/core/domain/WatchedList.ts:89
FunctionremoveFromCurrent
(item: T)
src/core/domain/WatchedList.ts:55
FunctionremoveFromNew
(item: T)
src/core/domain/WatchedList.ts:51
FunctionremoveFromRemoved
(item: T)
src/core/domain/WatchedList.ts:61
Functionreq
(req: Request)
src/infra/logger/logger.module.ts:104
MethodrequestDidStart
()
src/infra/http/graphql/complexity-plugin.ts:24
MethodserverWillStart
(service: GraphQLServiceContext)
src/infra/http/graphql/complexity-plugin.ts:20
Methodsetup
()
prisma/prisma-test-environment.ts:28
Methodteardown
()
prisma/prisma-test-environment.ts:37
MethodtoGraphQL
(error: UseCaseError)
src/infra/http/graphql/view-models/use-case-error.view-model.ts:6
MethoduserByEmail
(@Args('email') email: string)
src/infra/http/graphql/resolvers/user.resolver.ts:14
Methodvalidate
(payload: Payload)
src/infra/http/auth/jwt.strategy.ts:23
Methodvalue
()
src/domain/value-objects/email.ts:8
FunctionwasAddedInitially
(item: T)
src/core/domain/WatchedList.ts:65