Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ho-s/NestJS-GraphQL-TypeORM-PostgresQL
/ functions
Functions
141 in github.com/Ho-s/NestJS-GraphQL-TypeORM-PostgresQL
⨍
Functions
141
◇
Types & classes
116
↓ 16 callers
Method
create
(input: CreateUserInput)
src/user/user.service.ts:29
↓ 6 callers
Function
UseAuthGuard
(roles?: UserRoleType | UserRoleType[])
src/common/decorators/auth-guard.decorator.ts:9
↓ 6 callers
Method
forRoot
(options?: CacheModuleOptions)
src/cache/custom-cache.module.ts:12
↓ 5 callers
Method
getOne
(option: OneRepoQuery<User>)
src/user/user.service.ts:21
↓ 5 callers
Method
update
(id: string, input: UpdateUserInput)
src/user/user.service.ts:35
↓ 4 callers
Method
deleteS3Object
(key: string)
src/upload/upload.service.ts:75
↓ 4 callers
Function
getEnvPath
(dest: string)
src/common/helper/env.helper.ts:3
↓ 4 callers
Method
getLinkByKey
(key: string)
src/upload/upload.service.ts:37
↓ 4 callers
Method
uploadFileToS3
({ folderName, file, }: { folderName: string; file: FileUpload; })
src/upload/upload.service.ts:43
↓ 3 callers
Function
GraphQLQueryToOption
()
src/common/decorators/option.decorator.ts:157
↓ 3 callers
Function
UseRepositoryInterceptor
( entity: new (...args: unknown[]) => T, )
src/common/decorators/repository-interceptor.decorator.ts:7
↓ 3 callers
Method
getArgs
(context: ExecutionContext)
src/cache/custom-cache.interceptor.ts:56
↓ 3 callers
Function
isHttpException
(error: unknown)
src/common/exceptions/exception.util.ts:23
↓ 3 callers
Function
isPlainObject
(value: unknown)
src/common/graphql/utils/processWhere.ts:24
↓ 3 callers
Function
set
(object: T, path: string, value: K)
src/common/graphql/utils/processWhere.ts:32
↓ 2 callers
Function
CustomCache
(options: CustomCacheOptions = {})
src/cache/custom-cache.decorator.ts:12
↓ 2 callers
Function
addKeyValuesInObject
({ stack, relations, select, expandRelation, }: AddKeyValueInObjectProps<Entity>)
src/common/decorators/option.decorator.ts:19
↓ 2 callers
Method
buildCacheKey
(customKey: string, args: unknown[])
src/cache/custom-cache.service.ts:74
↓ 2 callers
Method
delete
(id: string)
src/user/user.service.ts:41
↓ 2 callers
Method
doesExist
(where: FindOptionsWhere<User>)
src/user/user.service.ts:25
↓ 2 callers
Method
generateAccessToken
(user: AccessTokenPayload, refreshToken: string)
src/auth/auth.service.ts:57
↓ 2 callers
Method
getCache
(key: string, logger?: CustomCacheOptions['logger'])
src/cache/custom-cache.service.ts:56
↓ 2 callers
Function
getCurrentGraphQLQuery
(ctx: GqlExecutionContext)
src/common/decorators/option.decorator.ts:118
↓ 2 callers
Method
getMany
(option?: RepoQuery<User>)
src/user/user.service.ts:17
↓ 2 callers
Method
getMockService
( service: new (...args: unknown[]) => T, )
src/common/factory/mockFactory.ts:34
↓ 2 callers
Function
goDeep
( filters: IWhere<T>, keyStore: string[] = [], _original: IWhere<T>, )
src/common/graphql/utils/processWhere.ts:81
↓ 2 callers
Function
isArray
(value: unknown)
src/common/graphql/utils/processWhere.ts:20
↓ 2 callers
Function
isGraphqlOriginalError
( extensions: GraphQLErrorExtensions, )
src/common/exceptions/exception.util.ts:8
↓ 2 callers
Function
processWhere
( original: IWhere<T>, )
src/common/graphql/utils/processWhere.ts:138
↓ 2 callers
Function
putMockedFunction
(propsNames: string[])
src/common/factory/mockFactory.ts:5
↓ 2 callers
Method
setCache
( key: string, data: unknown, ttl: number = Infinity, logger?: CustomCacheOptions['logger'],
src/cache/custom-cache.service.ts:64
↓ 2 callers
Function
setTypeormConfig
( conf: NodeJS.ProcessEnv | ConfigService, )
src/common/config/ormconfig.ts:14
↓ 1 callers
Function
CustomRepository
( entity: new (...args: unknown[]) => T, )
src/common/decorators/typeorm.decorator.ts:5
↓ 1 callers
Function
bootstrap
()
src/main.ts:20
↓ 1 callers
Function
checkPermission
( permission: FindOptionsSelect<InstanceType<T>>, select: FindOptionsSelect<InstanceType<T>>, )
src/common/guards/graphql-query-permission.guard.ts:18
↓ 1 callers
Function
composeExceptionMessage
( message: T, options: Record<string, string | number> = {}, )
src/common/exceptions/exception.factory.ts:41
↓ 1 callers
Function
createException
()
src/common/exceptions/exception.factory.ts:24
↓ 1 callers
Method
createUser
(@Args('input') input: CreateUserInput)
src/user/user.resolver.ts:49
↓ 1 callers
Method
deleteFiles
( @Args({ name: 'keys', type: () => [String] }) keys: string[], )
src/upload/upload.resolver.ts:44
↓ 1 callers
Method
deleteUser
(@Args('id') id: string)
src/user/user.resolver.ts:61
↓ 1 callers
Function
determineErrorCondition
(error: GraphQLError)
src/common/exceptions/exception.format.ts:16
↓ 1 callers
Function
determineErrorMessage
(error: GraphQLError)
src/common/exceptions/exception.format.ts:88
↓ 1 callers
Function
determineHttpStatus
( graphqlError: GraphQLError, errorStatus: HttpStatus, )
src/common/exceptions/exception.format.ts:45
↓ 1 callers
Function
errorFormatter
( errors: ReadonlyArray<GraphQLError>, originalData: Record<string, unknown>, )
src/common/exceptions/exception.format.ts:127
↓ 1 callers
Method
forCustomRepository
( repositories: T[], )
src/common/modules/typeorm.module.ts:9
↓ 1 callers
Function
formatError
( error: GraphQLError, options: { setHttpStatus: (status: HttpStatus) => void; logError: () => voi
src/common/exceptions/exception.format.ts:96
↓ 1 callers
Method
generateRefreshToken
(userId: string)
src/auth/auth.service.ts:27
↓ 1 callers
Function
getHttpExceptionCode
(status: number)
src/common/exceptions/exception.util.ts:27
↓ 1 callers
Function
getHttpExceptionMessage
(error: HttpException)
src/common/exceptions/exception.util.ts:31
↓ 1 callers
Method
getManyUserList
( @Args({ name: 'input', nullable: true }) condition: GetManyInput<User>, @GraphQLQueryToOption<Us
src/user/user.resolver.ts:26
↓ 1 callers
Method
getMe
( @CurrentUser() user: AccessTokenPayload, @GraphQLQueryToOption<User>() option: GetInfoFromQueryP
src/user/user.resolver.ts:68
↓ 1 callers
Method
getMockRepository
( repository: new (...args: unknown[]) => T, )
src/common/factory/mockFactory.ts:19
↓ 1 callers
Method
getOneUser
( @Args({ name: 'input' }) condition: GetOneInput<User>, @GraphQLQueryToOption<User>() option:
src/user/user.resolver.ts:38
↓ 1 callers
Method
getOrSetCache
( customKey: string, args: unknown[], options: CustomCacheOptions, resultFn: () => Promise<unk
src/cache/custom-cache.service.ts:78
↓ 1 callers
Method
getString
(key: keyof EnvironmentVariables)
src/common/util/util.service.ts:24
↓ 1 callers
Function
handleInternalServerError
( errorStatus: HttpStatus, _: GraphQLError, )
src/common/exceptions/exception.format.ts:76
↓ 1 callers
Method
hasAccess
( role: UserRoleType, requiredRoles: UserRoleType[], )
src/common/guards/graphql-passport-auth.guard.ts:39
↓ 1 callers
Function
isBaseException
( error: unknown, )
src/common/exceptions/exception.util.ts:17
↓ 1 callers
Function
isEmptyObject
( value: T, )
src/common/graphql/customExtended.ts:28
↓ 1 callers
Method
isHealthy
(key: string, url: string)
src/health/indicator/ping.indicator.ts:15
↓ 1 callers
Function
isObject
(value: unknown)
src/common/graphql/customExtended.ts:21
↓ 1 callers
Method
listS3Object
(folder: string)
src/upload/upload.service.ts:102
↓ 1 callers
Function
logError
(error: GraphQLError)
src/common/exceptions/exception.format.ts:67
↓ 1 callers
Function
merge
(prev: T, next: K)
src/common/graphql/utils/processWhere.ts:28
↓ 1 callers
Function
prettify
()
generator/plopfile.mjs:6
↓ 1 callers
Function
processOperator
(prevKey: string, nextObject: OperatorType<T>)
src/common/graphql/utils/processWhere.ts:48
↓ 1 callers
Method
registerAllCache
()
src/cache/custom-cache.service.ts:17
↓ 1 callers
Method
registerCache
(instance: object)
src/cache/custom-cache.service.ts:30
↓ 1 callers
Method
signIn
(user: AccessTokenPayload)
src/auth/auth.service.ts:81
↓ 1 callers
Method
updateUser
(@Args('id') id: string, @Args('input') input: UpdateUserInput)
src/user/user.resolver.ts:55
↓ 1 callers
Method
uploadFile
( @Args({ name: 'file', type: () => GraphQLUpload }) file: FileUpload, )
src/upload/upload.resolver.ts:14
↓ 1 callers
Method
uploadFiles
( @Args({ name: 'files', type: () => [GraphQLUpload] }) files: FileUpload[], )
src/upload/upload.resolver.ts:27
↓ 1 callers
Method
validateUser
(input: SignInInput)
src/auth/auth.service.ts:88
↓ 1 callers
Method
verifyRefreshToken
( userId: string, refreshToken: string, )
src/auth/auth.service.ts:40
Function
UseQueryPermissionGuard
( instance: T, permission: FindOptionsSelect<InstanceType<T>>, )
src/common/decorators/query-guard.decorator.ts:12
Method
_dummy
()
src/upload/upload.module.integration.spec.ts:21
Method
beforeInsertOrUpdate
()
src/user/entities/user.entity.ts:71
Method
canActivate
(context: ExecutionContext)
src/common/guards/graphql-passport-auth.guard.ts:16
Method
canActivate
(context: ExecutionContext)
src/common/guards/graphql-query-permission.guard.ts:40
Method
catch
(exception: unknown, host: ArgumentsHost)
src/common/exceptions/exception-silencer.filter.ts:6
Method
check
()
src/health/health.controller.ts:24
Function
constructor
( public statusCode: StatusCode, public override message: Message, public code: Code, )
src/common/exceptions/exception.factory.ts:15
Method
constructor
( private readonly discoveryService: DiscoveryService, private readonly metadataScanner: MetadataScann
src/cache/custom-cache.service.ts:9
Method
constructor
(private readonly customCacheService: CustomCacheService)
src/cache/custom-cache.module.ts:10
Method
constructor
( private readonly customCacheService: CustomCacheService, private readonly reflector: Reflector, )
src/cache/custom-cache.interceptor.ts:17
Method
constructor
( private readonly userService: UserService, private readonly jwtService: JwtService, private read
src/auth/auth.service.ts:21
Method
constructor
( private readonly authService: AuthService, private readonly userService: UserService, )
src/auth/auth.resolver.ts:16
Method
constructor
( private readonly configService: ConfigService<EnvironmentVariables>, private readonly authService: A
src/auth/strategies/jwt-refresh.strategy.ts:18
Method
constructor
( private readonly userService: UserService, private readonly configService: ConfigService<Environment
src/auth/strategies/jwt.strategy.ts:15
Method
constructor
(private readonly authService: AuthService)
src/auth/strategies/local.strategy.ts:11
Method
constructor
(private readonly userRepository: UserRepository)
src/user/user.service.ts:14
Method
constructor
(private readonly userService: UserService)
src/user/user.resolver.ts:20
Method
constructor
(private readonly uploadService: UploadService)
src/upload/upload.resolver.ts:11
Method
constructor
( private readonly configService: ConfigService<EnvironmentVariables>, private readonly httpService: H
src/upload/upload.service.ts:23
Method
constructor
()
src/common/guards/graphql-signin.guard.ts:7
Method
constructor
(private reflector: Reflector)
src/common/guards/graphql-passport-auth.guard.ts:12
Method
constructor
()
src/common/guards/graphql-refresh.guard.ts:7
Method
constructor
( private reflector: Reflector, private readonly dataSource: DataSource, )
src/common/guards/graphql-query-permission.guard.ts:35
Method
constructor
(arg?: ExceptionParams<K>)
src/common/exceptions/exception.factory.ts:31
Method
constructor
(private readonly dataSource: DataSource)
src/common/interceptors/repository.interceptor.ts:18
next →
1–100 of 141, ranked by callers