Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rocketseat/backend-template
/ functions
Functions
75 in github.com/Rocketseat/backend-template
⨍
Functions
75
◇
Types & classes
66
↓ 4 callers
Method
handle
(email: string)
src/application/use-cases/user/get-user-by-email.use-case.ts:22
↓ 3 callers
Method
create
(user: User)
src/infra/database/prisma/repositories/prisma-users-repository.ts:16
↓ 3 callers
Method
isLeft
()
src/core/logic/Either.ts:8
↓ 3 callers
Function
left
(l: L)
src/core/logic/Either.ts:35
↓ 2 callers
Method
create
(user: User)
test/repositories/in-memory-users.repository.ts:10
↓ 2 callers
Method
create
(email: string)
src/domain/value-objects/email.ts:18
↓ 2 callers
Method
getRequest
(context: ExecutionContext)
src/infra/http/auth/jwt-auth-guard.ts:50
↓ 2 callers
Function
makeFakeUser
(data = {} as Overrides)
test/factories/users.factory.ts:21
↓ 2 callers
Function
right
(a: A)
src/core/logic/Either.ts:39
↓ 2 callers
Method
toGraphQL
(user: UserEntity)
src/infra/http/graphql/view-models/user.view-model.ts:6
↓ 2 callers
Method
toPersistence
(user: User)
src/infra/database/prisma/mappers/user.mapper.ts:15
↓ 2 callers
Method
validate
(email: string)
src/domain/value-objects/email.ts:12
↓ 1 callers
Function
Paginated
(classRef: Type<T>)
src/infra/http/graphql/common/dto/models/paginated.ts:9
↓ 1 callers
Function
base64Encode
(key = '')
src/utils/base64-encode.ts:1
↓ 1 callers
Function
bootstrap
()
src/main.ts:11
↓ 1 callers
Method
email
()
src/domain/entities/user.entity.ts:10
↓ 1 callers
Method
enableShutdownHooks
(app: INestApplication)
src/infra/database/prisma/prisma.service.ts:24
↓ 1 callers
Method
findByEmail
(email: string)
src/infra/database/prisma/repositories/prisma-users-repository.ts:24
↓ 1 callers
Method
isRight
()
src/core/logic/Either.ts:12
↓ 1 callers
Method
makeUser
(data = {} as Overrides)
test/factories/users.factory.ts:39
↓ 1 callers
Method
toDomain
(raw: RawUser)
src/infra/database/prisma/mappers/user.mapper.ts:6
Function
Public
()
src/infra/http/auth/public.ts:7
Function
add
(item: T)
src/core/domain/WatchedList.ts:75
Method
canActivate
(context: ExecutionContext)
src/infra/http/auth/jwt-auth-guard.ts:14
Function
constructor
(props: T, id?: string)
src/core/domain/Entity.ts:11
Function
constructor
(initialItems?: T[])
src/core/domain/WatchedList.ts:7
Function
constructor
(message: string)
src/application/errors/use-case-error.ts:5
Method
constructor
(private prisma: PrismaService)
test/factories/users.factory.ts:37
Method
constructor
( logger: PinoLogger, @Inject(PARAMS_PROVIDER_TOKEN) params: Params, )
src/infra/logger/logger.service.ts:7
Method
constructor
(private reflector: Reflector)
src/infra/http/auth/jwt-auth-guard.ts:11
Method
constructor
()
src/infra/http/auth/jwt.strategy.ts:14
Method
constructor
(private maxComplexity: number)
src/infra/http/graphql/complexity-plugin.ts:18
Method
constructor
(private readonly getUserByEmailUseCase: GetUserByEmailUseCase)
src/infra/http/graphql/resolvers/user.resolver.ts:11
Method
constructor
()
src/infra/database/prisma/prisma.service.ts:10
Method
constructor
(private readonly prisma: PrismaService)
src/infra/database/prisma/repositories/prisma-users-repository.ts:14
Method
constructor
(value: L)
src/core/logic/Either.ts:4
Method
constructor
(value: A)
src/core/logic/Either.ts:20
Method
constructor
(private readonly email: string)
src/domain/value-objects/email.ts:6
Method
constructor
(email: string)
src/domain/value-objects/errors/email-bad-formatted-error.ts:4
Method
constructor
(private readonly usersRepository: UsersRepository)
src/application/use-cases/user/get-user-by-email.use-case.ts:20
Method
constructor
(email: string)
src/application/use-cases/user/errors/user-by-email-not-found.error.ts:4
Method
constructor
(config: Config.ProjectConfig)
prisma/prisma-test-environment.ts:21
Method
create
( props: Replace< UserProps, { createdAt?: Date; } >, id?: string, )
src/domain/entities/user.entity.ts:18
Method
createdAt
()
src/domain/entities/user.entity.ts:14
Method
didResolveOperation
({ request, document })
src/infra/http/graphql/complexity-plugin.ts:29
Function
equals
(object?: Entity<T>)
src/core/domain/Entity.ts:16
Function
exists
(item: T)
src/core/domain/WatchedList.ts:71
Method
findByEmail
(email: string)
test/repositories/in-memory-users.repository.ts:16
Function
getItems
()
src/core/domain/WatchedList.ts:16
Function
getNewItems
()
src/core/domain/WatchedList.ts:20
Function
getRemovedItems
()
src/core/domain/WatchedList.ts:24
Function
getUpdatedItems
()
src/core/domain/WatchedList.ts:28
Function
id
()
src/core/domain/Entity.ts:7
Function
isCurrentItem
(item: T)
src/core/domain/WatchedList.ts:34
Method
isLeft
()
src/core/logic/Either.ts:24
Function
isNewItem
(item: T)
src/core/domain/WatchedList.ts:41
Function
isRemovedItem
(item: T)
src/core/domain/WatchedList.ts:45
Method
isRight
()
src/core/logic/Either.ts:28
Function
level
(level: string)
src/infra/logger/logger.module.ts:111
Method
onModuleDestroy
()
src/infra/database/prisma/prisma.service.ts:20
Method
onModuleInit
()
src/infra/database/prisma/prisma.service.ts:16
Function
remove
(item: T)
src/core/domain/WatchedList.ts:89
Function
removeFromCurrent
(item: T)
src/core/domain/WatchedList.ts:55
Function
removeFromNew
(item: T)
src/core/domain/WatchedList.ts:51
Function
removeFromRemoved
(item: T)
src/core/domain/WatchedList.ts:61
Function
req
(req: Request)
src/infra/logger/logger.module.ts:104
Method
requestDidStart
()
src/infra/http/graphql/complexity-plugin.ts:24
Method
serverWillStart
(service: GraphQLServiceContext)
src/infra/http/graphql/complexity-plugin.ts:20
Method
setup
()
prisma/prisma-test-environment.ts:28
Method
teardown
()
prisma/prisma-test-environment.ts:37
Method
toGraphQL
(error: UseCaseError)
src/infra/http/graphql/view-models/use-case-error.view-model.ts:6
Method
userByEmail
(@Args('email') email: string)
src/infra/http/graphql/resolvers/user.resolver.ts:14
Method
validate
(payload: Payload)
src/infra/http/auth/jwt.strategy.ts:23
Method
value
()
src/domain/value-objects/email.ts:8
Function
wasAddedInitially
(item: T)
src/core/domain/WatchedList.ts:65