MCPcopy Create free account

hub / github.com/Ho-s/NestJS-GraphQL-TypeORM-PostgresQL / functions

Functions141 in github.com/Ho-s/NestJS-GraphQL-TypeORM-PostgresQL

↓ 16 callersMethodcreate
(input: CreateUserInput)
src/user/user.service.ts:29
↓ 6 callersFunctionUseAuthGuard
(roles?: UserRoleType | UserRoleType[])
src/common/decorators/auth-guard.decorator.ts:9
↓ 6 callersMethodforRoot
(options?: CacheModuleOptions)
src/cache/custom-cache.module.ts:12
↓ 5 callersMethodgetOne
(option: OneRepoQuery<User>)
src/user/user.service.ts:21
↓ 5 callersMethodupdate
(id: string, input: UpdateUserInput)
src/user/user.service.ts:35
↓ 4 callersMethoddeleteS3Object
(key: string)
src/upload/upload.service.ts:75
↓ 4 callersFunctiongetEnvPath
(dest: string)
src/common/helper/env.helper.ts:3
↓ 4 callersMethodgetLinkByKey
(key: string)
src/upload/upload.service.ts:37
↓ 4 callersMethoduploadFileToS3
({ folderName, file, }: { folderName: string; file: FileUpload; })
src/upload/upload.service.ts:43
↓ 3 callersFunctionGraphQLQueryToOption
()
src/common/decorators/option.decorator.ts:157
↓ 3 callersFunctionUseRepositoryInterceptor
( entity: new (...args: unknown[]) => T, )
src/common/decorators/repository-interceptor.decorator.ts:7
↓ 3 callersMethodgetArgs
(context: ExecutionContext)
src/cache/custom-cache.interceptor.ts:56
↓ 3 callersFunctionisHttpException
(error: unknown)
src/common/exceptions/exception.util.ts:23
↓ 3 callersFunctionisPlainObject
(value: unknown)
src/common/graphql/utils/processWhere.ts:24
↓ 3 callersFunctionset
(object: T, path: string, value: K)
src/common/graphql/utils/processWhere.ts:32
↓ 2 callersFunctionCustomCache
(options: CustomCacheOptions = {})
src/cache/custom-cache.decorator.ts:12
↓ 2 callersFunctionaddKeyValuesInObject
({ stack, relations, select, expandRelation, }: AddKeyValueInObjectProps<Entity>)
src/common/decorators/option.decorator.ts:19
↓ 2 callersMethodbuildCacheKey
(customKey: string, args: unknown[])
src/cache/custom-cache.service.ts:74
↓ 2 callersMethoddelete
(id: string)
src/user/user.service.ts:41
↓ 2 callersMethoddoesExist
(where: FindOptionsWhere<User>)
src/user/user.service.ts:25
↓ 2 callersMethodgenerateAccessToken
(user: AccessTokenPayload, refreshToken: string)
src/auth/auth.service.ts:57
↓ 2 callersMethodgetCache
(key: string, logger?: CustomCacheOptions['logger'])
src/cache/custom-cache.service.ts:56
↓ 2 callersFunctiongetCurrentGraphQLQuery
(ctx: GqlExecutionContext)
src/common/decorators/option.decorator.ts:118
↓ 2 callersMethodgetMany
(option?: RepoQuery<User>)
src/user/user.service.ts:17
↓ 2 callersMethodgetMockService
( service: new (...args: unknown[]) => T, )
src/common/factory/mockFactory.ts:34
↓ 2 callersFunctiongoDeep
( filters: IWhere<T>, keyStore: string[] = [], _original: IWhere<T>, )
src/common/graphql/utils/processWhere.ts:81
↓ 2 callersFunctionisArray
(value: unknown)
src/common/graphql/utils/processWhere.ts:20
↓ 2 callersFunctionisGraphqlOriginalError
( extensions: GraphQLErrorExtensions, )
src/common/exceptions/exception.util.ts:8
↓ 2 callersFunctionprocessWhere
( original: IWhere<T>, )
src/common/graphql/utils/processWhere.ts:138
↓ 2 callersFunctionputMockedFunction
(propsNames: string[])
src/common/factory/mockFactory.ts:5
↓ 2 callersMethodsetCache
( key: string, data: unknown, ttl: number = Infinity, logger?: CustomCacheOptions['logger'],
src/cache/custom-cache.service.ts:64
↓ 2 callersFunctionsetTypeormConfig
( conf: NodeJS.ProcessEnv | ConfigService, )
src/common/config/ormconfig.ts:14
↓ 1 callersFunctionCustomRepository
( entity: new (...args: unknown[]) => T, )
src/common/decorators/typeorm.decorator.ts:5
↓ 1 callersFunctionbootstrap
()
src/main.ts:20
↓ 1 callersFunctioncheckPermission
( permission: FindOptionsSelect<InstanceType<T>>, select: FindOptionsSelect<InstanceType<T>>, )
src/common/guards/graphql-query-permission.guard.ts:18
↓ 1 callersFunctioncomposeExceptionMessage
( message: T, options: Record<string, string | number> = {}, )
src/common/exceptions/exception.factory.ts:41
↓ 1 callersFunctioncreateException
()
src/common/exceptions/exception.factory.ts:24
↓ 1 callersMethodcreateUser
(@Args('input') input: CreateUserInput)
src/user/user.resolver.ts:49
↓ 1 callersMethoddeleteFiles
( @Args({ name: 'keys', type: () => [String] }) keys: string[], )
src/upload/upload.resolver.ts:44
↓ 1 callersMethoddeleteUser
(@Args('id') id: string)
src/user/user.resolver.ts:61
↓ 1 callersFunctiondetermineErrorCondition
(error: GraphQLError)
src/common/exceptions/exception.format.ts:16
↓ 1 callersFunctiondetermineErrorMessage
(error: GraphQLError)
src/common/exceptions/exception.format.ts:88
↓ 1 callersFunctiondetermineHttpStatus
( graphqlError: GraphQLError, errorStatus: HttpStatus, )
src/common/exceptions/exception.format.ts:45
↓ 1 callersFunctionerrorFormatter
( errors: ReadonlyArray<GraphQLError>, originalData: Record<string, unknown>, )
src/common/exceptions/exception.format.ts:127
↓ 1 callersMethodforCustomRepository
( repositories: T[], )
src/common/modules/typeorm.module.ts:9
↓ 1 callersFunctionformatError
( error: GraphQLError, options: { setHttpStatus: (status: HttpStatus) => void; logError: () => voi
src/common/exceptions/exception.format.ts:96
↓ 1 callersMethodgenerateRefreshToken
(userId: string)
src/auth/auth.service.ts:27
↓ 1 callersFunctiongetHttpExceptionCode
(status: number)
src/common/exceptions/exception.util.ts:27
↓ 1 callersFunctiongetHttpExceptionMessage
(error: HttpException)
src/common/exceptions/exception.util.ts:31
↓ 1 callersMethodgetManyUserList
( @Args({ name: 'input', nullable: true }) condition: GetManyInput<User>, @GraphQLQueryToOption<Us
src/user/user.resolver.ts:26
↓ 1 callersMethodgetMe
( @CurrentUser() user: AccessTokenPayload, @GraphQLQueryToOption<User>() option: GetInfoFromQueryP
src/user/user.resolver.ts:68
↓ 1 callersMethodgetMockRepository
( repository: new (...args: unknown[]) => T, )
src/common/factory/mockFactory.ts:19
↓ 1 callersMethodgetOneUser
( @Args({ name: 'input' }) condition: GetOneInput<User>, @GraphQLQueryToOption<User>() option:
src/user/user.resolver.ts:38
↓ 1 callersMethodgetOrSetCache
( customKey: string, args: unknown[], options: CustomCacheOptions, resultFn: () => Promise<unk
src/cache/custom-cache.service.ts:78
↓ 1 callersMethodgetString
(key: keyof EnvironmentVariables)
src/common/util/util.service.ts:24
↓ 1 callersFunctionhandleInternalServerError
( errorStatus: HttpStatus, _: GraphQLError, )
src/common/exceptions/exception.format.ts:76
↓ 1 callersMethodhasAccess
( role: UserRoleType, requiredRoles: UserRoleType[], )
src/common/guards/graphql-passport-auth.guard.ts:39
↓ 1 callersFunctionisBaseException
( error: unknown, )
src/common/exceptions/exception.util.ts:17
↓ 1 callersFunctionisEmptyObject
( value: T, )
src/common/graphql/customExtended.ts:28
↓ 1 callersMethodisHealthy
(key: string, url: string)
src/health/indicator/ping.indicator.ts:15
↓ 1 callersFunctionisObject
(value: unknown)
src/common/graphql/customExtended.ts:21
↓ 1 callersMethodlistS3Object
(folder: string)
src/upload/upload.service.ts:102
↓ 1 callersFunctionlogError
(error: GraphQLError)
src/common/exceptions/exception.format.ts:67
↓ 1 callersFunctionmerge
(prev: T, next: K)
src/common/graphql/utils/processWhere.ts:28
↓ 1 callersFunctionprettify
()
generator/plopfile.mjs:6
↓ 1 callersFunctionprocessOperator
(prevKey: string, nextObject: OperatorType<T>)
src/common/graphql/utils/processWhere.ts:48
↓ 1 callersMethodregisterAllCache
()
src/cache/custom-cache.service.ts:17
↓ 1 callersMethodregisterCache
(instance: object)
src/cache/custom-cache.service.ts:30
↓ 1 callersMethodsignIn
(user: AccessTokenPayload)
src/auth/auth.service.ts:81
↓ 1 callersMethodupdateUser
(@Args('id') id: string, @Args('input') input: UpdateUserInput)
src/user/user.resolver.ts:55
↓ 1 callersMethoduploadFile
( @Args({ name: 'file', type: () => GraphQLUpload }) file: FileUpload, )
src/upload/upload.resolver.ts:14
↓ 1 callersMethoduploadFiles
( @Args({ name: 'files', type: () => [GraphQLUpload] }) files: FileUpload[], )
src/upload/upload.resolver.ts:27
↓ 1 callersMethodvalidateUser
(input: SignInInput)
src/auth/auth.service.ts:88
↓ 1 callersMethodverifyRefreshToken
( userId: string, refreshToken: string, )
src/auth/auth.service.ts:40
FunctionUseQueryPermissionGuard
( instance: T, permission: FindOptionsSelect<InstanceType<T>>, )
src/common/decorators/query-guard.decorator.ts:12
Method_dummy
()
src/upload/upload.module.integration.spec.ts:21
MethodbeforeInsertOrUpdate
()
src/user/entities/user.entity.ts:71
MethodcanActivate
(context: ExecutionContext)
src/common/guards/graphql-passport-auth.guard.ts:16
MethodcanActivate
(context: ExecutionContext)
src/common/guards/graphql-query-permission.guard.ts:40
Methodcatch
(exception: unknown, host: ArgumentsHost)
src/common/exceptions/exception-silencer.filter.ts:6
Methodcheck
()
src/health/health.controller.ts:24
Functionconstructor
( public statusCode: StatusCode, public override message: Message, public code: Code, )
src/common/exceptions/exception.factory.ts:15
Methodconstructor
( private readonly discoveryService: DiscoveryService, private readonly metadataScanner: MetadataScann
src/cache/custom-cache.service.ts:9
Methodconstructor
(private readonly customCacheService: CustomCacheService)
src/cache/custom-cache.module.ts:10
Methodconstructor
( private readonly customCacheService: CustomCacheService, private readonly reflector: Reflector, )
src/cache/custom-cache.interceptor.ts:17
Methodconstructor
( private readonly userService: UserService, private readonly jwtService: JwtService, private read
src/auth/auth.service.ts:21
Methodconstructor
( private readonly authService: AuthService, private readonly userService: UserService, )
src/auth/auth.resolver.ts:16
Methodconstructor
( private readonly configService: ConfigService<EnvironmentVariables>, private readonly authService: A
src/auth/strategies/jwt-refresh.strategy.ts:18
Methodconstructor
( private readonly userService: UserService, private readonly configService: ConfigService<Environment
src/auth/strategies/jwt.strategy.ts:15
Methodconstructor
(private readonly authService: AuthService)
src/auth/strategies/local.strategy.ts:11
Methodconstructor
(private readonly userRepository: UserRepository)
src/user/user.service.ts:14
Methodconstructor
(private readonly userService: UserService)
src/user/user.resolver.ts:20
Methodconstructor
(private readonly uploadService: UploadService)
src/upload/upload.resolver.ts:11
Methodconstructor
( private readonly configService: ConfigService<EnvironmentVariables>, private readonly httpService: H
src/upload/upload.service.ts:23
Methodconstructor
()
src/common/guards/graphql-signin.guard.ts:7
Methodconstructor
(private reflector: Reflector)
src/common/guards/graphql-passport-auth.guard.ts:12
Methodconstructor
()
src/common/guards/graphql-refresh.guard.ts:7
Methodconstructor
( private reflector: Reflector, private readonly dataSource: DataSource, )
src/common/guards/graphql-query-permission.guard.ts:35
Methodconstructor
(arg?: ExceptionParams<K>)
src/common/exceptions/exception.factory.ts:31
Methodconstructor
(private readonly dataSource: DataSource)
src/common/interceptors/repository.interceptor.ts:18
next →1–100 of 141, ranked by callers