Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/graphql-hive/graphql-modules
/ functions
Functions
415 in github.com/graphql-hive/graphql-modules
⨍
Functions
415
◇
Types & classes
143
↓ 135 callers
Function
gql
( literals: ReadonlyArray<string> | Readonly<string> )
packages/graphql-modules/src/shared/gql.ts:3
↓ 110 callers
Method
get
(token: Object)
packages/graphql-modules/src/di/registry.ts:22
↓ 89 callers
Function
createModule
(config: ModuleConfig)
packages/graphql-modules/src/module/module.ts:24
↓ 76 callers
Function
Injectable
(options?: ProviderOptions)
packages/graphql-modules/src/di/decorators.ts:16
↓ 64 callers
Function
createApplication
( applicationConfig: ApplicationConfig )
packages/graphql-modules/src/application/application.ts:61
↓ 21 callers
Method
resolve
(providers: Provider[])
packages/graphql-modules/src/di/injector.ts:102
↓ 20 callers
Method
log
()
packages/graphql-modules/tests/di-providers.spec.ts:50
↓ 15 callers
Function
Inject
( type: Type<any> | InjectionToken<any> )
packages/graphql-modules/src/di/decorators.ts:72
↓ 14 callers
Function
composeMessage
(...lines: string[])
packages/graphql-modules/src/shared/errors.ts:80
↓ 13 callers
Function
next
()
packages/graphql-modules/src/shared/utils.ts:50
↓ 12 callers
Function
ExecutionContext
()
packages/graphql-modules/src/di/decorators.ts:91
↓ 12 callers
Method
lorem
()
packages/graphql-modules/tests/di-providers.spec.ts:651
↓ 12 callers
Function
stringify
(token: any)
packages/graphql-modules/src/di/utils.ts:33
↓ 12 callers
Function
useLocation
({ dirname, id }: { id: ID; dirname?: string })
packages/graphql-modules/src/shared/errors.ts:61
↓ 12 callers
Function
wait
(ms: number)
packages/graphql-modules/tests/middleware-generic.spec.ts:3
↓ 11 callers
Method
getName
()
packages/graphql-modules/tests/execution-context.spec.ts:433
↓ 11 callers
Function
isDefined
(val: T | null | undefined)
packages/graphql-modules/src/shared/utils.ts:7
↓ 11 callers
Function
readInjectableMetadata
( type: Type<any>, throwOnMissing?: boolean )
packages/graphql-modules/src/di/metadata.ts:16
↓ 10 callers
Method
createFromResolved
({ name, providers, parent, fallbackParent, globalProvidersMap, }: { name: string;
packages/graphql-modules/src/di/injector.ts:80
↓ 10 callers
Function
writeResolverMetadata
( resolver: Function | GraphQLFieldExtensions<any, any, any>, config: ModuleConfig )
packages/graphql-modules/src/module/resolvers.ts:423
↓ 9 callers
Method
createExecution
* Creates a `execute` function that runs the execution phase of GraphQL. * Important when using GraphQL Queries and Mutations.
packages/graphql-modules/src/application/types.ts:67
↓ 9 callers
Function
createFn
(label: string)
packages/graphql-modules/tests/middleware-resolvers.spec.ts:11
↓ 9 callers
Method
createOperationController
* Take over control of GraphQL Operation
packages/graphql-modules/src/application/types.ts:51
↓ 7 callers
Function
ExtendableBuiltin
(cls: T)
packages/graphql-modules/src/shared/errors.ts:70
↓ 7 callers
Function
createMiddleware
( path: string[], middlewareMap?: MiddlewareMap )
packages/graphql-modules/src/shared/middleware.ts:68
↓ 7 callers
Method
lorem
()
packages/graphql-modules/tests/di-errors.spec.ts:149
↓ 7 callers
Function
middleware
()
packages/graphql-modules/tests/middleware-resolvers.spec.ts:213
↓ 6 callers
Method
all
()
packages/graphql-modules/tests/execution-context.spec.ts:36
↓ 6 callers
Function
createContext
()
packages/graphql-modules/tests/execution-context.spec.ts:92
↓ 6 callers
Method
destroy
* Destroys
packages/graphql-modules/src/application/types.ts:95
↓ 6 callers
Function
moduleFactory
(config: ModuleConfig)
packages/graphql-modules/src/module/factory.ts:43
↓ 6 callers
Function
resolve
(title: string)
packages/graphql-modules/tests/subscription.spec.ts:92
↓ 5 callers
Method
createApolloExecutor
* Experimental
packages/graphql-modules/src/application/types.ts:78
↓ 5 callers
Function
graphql
(schema: GraphQLSchema, executeFn: typeof execute)
benchmark/basic.case.ts:133
↓ 5 callers
Method
listen
()
packages/graphql-modules/tests/subscription.spec.ts:38
↓ 4 callers
Function
collectType
(typeName: string)
packages/graphql-modules/src/testing/test-module.ts:309
↓ 4 callers
Function
contextBuilder
(context)
packages/graphql-modules/src/application/context.ts:88
↓ 4 callers
Function
createContext
()
packages/graphql-modules/tests/di-providers.spec.ts:182
↓ 4 callers
Function
createDeferred
()
packages/graphql-modules/tests/execution-context.spec.ts:1013
↓ 4 callers
Function
ensureReflect
()
packages/graphql-modules/src/di/decorators.ts:10
↓ 4 callers
Function
execute
( app: Application, inputs: Omit<ExecutionArgs, 'schema'> & { document: DocumentNode | TypedDocumentNo
packages/graphql-modules/src/testing/graphql.ts:6
↓ 4 callers
Method
getById
(id: string)
packages/graphql-modules/tests/testing.spec.ts:114
↓ 4 callers
Method
getEnv
()
packages/graphql-modules/tests/testing.spec.ts:519
↓ 4 callers
Method
getId
()
packages/graphql-modules/tests/execution-context.spec.ts:807
↓ 4 callers
Function
isNotSchema
(obj: any)
packages/graphql-modules/src/shared/utils.ts:110
↓ 4 callers
Method
log
()
packages/graphql-modules/tests/third-parties.spec.ts:69
↓ 4 callers
Function
resolveType
(type: TypeNode)
packages/graphql-modules/src/testing/test-module.ts:344
↓ 4 callers
Function
snap
(label: string)
packages/graphql-modules/tests/memory-leak.spec.ts:105
↓ 4 callers
Method
toString
()
packages/graphql-modules/src/di/providers.ts:9
↓ 4 callers
Method
ɵgetModuleContext
( moduleId: ID, context: GraphQLModules.GlobalContext )
packages/graphql-modules/src/application/application.ts:34
↓ 3 callers
Method
_getByKey
(key: Key, notFoundValue: any)
packages/graphql-modules/src/di/injector.ts:122
↓ 3 callers
Method
all
()
packages/graphql-modules/tests/di-providers.spec.ts:70
↓ 3 callers
Function
attachGlobalProvidersMap
({ injector, globalProvidersMap, moduleInjectorGetter, }: { injector: ReflectiveInjector; globalProv
packages/graphql-modules/src/application/di.ts:56
↓ 3 callers
Function
collectObjectDefinition
( node: | ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode | InputObjectTypeDefini
packages/graphql-modules/src/module/metadata.ts:34
↓ 3 callers
Function
collectObjectExtension
( node: | ObjectTypeExtensionNode | InterfaceTypeExtensionNode | InputObjectTypeExtensio
packages/graphql-modules/src/module/metadata.ts:66
↓ 3 callers
Function
compose
(middleware: Array<Middleware<TContext>>)
packages/graphql-modules/src/shared/middleware.ts:14
↓ 3 callers
Function
constructResolvingPath
(keys: any[])
packages/graphql-modules/src/di/errors.ts:117
↓ 3 callers
Function
createContext
()
packages/graphql-modules/tests/subscription.spec.ts:109
↓ 3 callers
Method
createSubscription
* Creates a `subscribe` function that runs the subscription phase of GraphQL. * Important when using GraphQL Subscriptions.
packages/graphql-modules/src/application/types.ts:59
↓ 3 callers
Function
ensureInjectableMetadata
(type: Type<any>)
packages/graphql-modules/src/di/metadata.ts:29
↓ 3 callers
Function
hasPropValue
( obj: T, prop: K )
packages/graphql-modules/src/testing/test-module.ts:428
↓ 3 callers
Function
injectionError
( injector: ReflectiveInjector, key: Key, constructResolvingMessage: (this: InjectionError) => string,
packages/graphql-modules/src/di/errors.ts:95
↓ 3 callers
Method
instantiateAll
()
packages/graphql-modules/src/di/injector.ts:200
↓ 3 callers
Function
isType
(v: any)
packages/graphql-modules/src/di/providers.ts:18
↓ 3 callers
Function
lazy
(getter: () => T)
packages/graphql-modules/src/module/factory.ts:27
↓ 3 callers
Function
mergeResolvers
* We iterate over every defined resolver and check if it's valid and not duplicated
packages/graphql-modules/src/module/resolvers.ts:213
↓ 3 callers
Function
mockedFactory
(newConfig?: ApplicationConfig)
packages/graphql-modules/src/testing/test-application.ts:11
↓ 3 callers
Function
resolveForwardRef
(type: any)
packages/graphql-modules/src/di/forward-ref.ts:19
↓ 3 callers
Function
run
(onResult: (testResult: TestResult) => void)
benchmark/basic.case.ts:186
↓ 3 callers
Function
wrapResolver
* Wrap a resolver so we use module's context instead of app context. * Use a middleware if available. * Attach metadata to a resolver (we will see i
packages/graphql-modules/src/module/resolvers.ts:128
↓ 2 callers
Method
_getObjByKeyId
(keyId: number)
packages/graphql-modules/src/di/injector.ts:174
↓ 2 callers
Method
add
(title: string)
packages/graphql-modules/tests/subscription.spec.ts:30
↓ 2 callers
Method
addProviders
(providers: ApplicationConfig['providers'])
packages/graphql-modules/src/application/types.ts:24
↓ 2 callers
Method
all
()
benchmark/basic.case.ts:47
↓ 2 callers
Function
attachSymbols
(obj: O)
packages/graphql-modules/src/shared/utils.ts:123
↓ 2 callers
Function
createContext
()
packages/graphql-modules/tests/di-hooks.spec.ts:84
↓ 2 callers
Function
createExecution
(options)
packages/graphql-modules/src/application/execution.ts:20
↓ 2 callers
Function
createGlobalProvidersMap
({ modules, scope, }: { modules: ResolvedModule[]; scope: Scope; })
packages/graphql-modules/src/application/di.ts:19
↓ 2 callers
Method
createSchemaForApollo
* @deprecated Use `createApolloExecutor`, `createExecution` and `createSubscription` methods instead.
packages/graphql-modules/src/application/types.ts:74
↓ 2 callers
Function
createSubscription
(options)
packages/graphql-modules/src/application/subscription.ts:23
↓ 2 callers
Method
currentId
()
packages/graphql-modules/tests/operation-controller.spec.ts:246
↓ 2 callers
Function
define
(key: string | symbol)
packages/graphql-modules/src/application/context.ts:46
↓ 2 callers
Function
defineUserContextAccessors
* Installs a getter-based view of `refs.context` onto `target` — every * string/symbol-keyed property of `source` (captured at call time) becomes *
packages/graphql-modules/src/application/context.ts:40
↓ 2 callers
Function
dependenciesFor
(type: any)
packages/graphql-modules/src/di/resolution.ts:162
↓ 2 callers
Function
executor
(input)
packages/graphql-modules/src/application/apollo.ts:92
↓ 2 callers
Function
extractToken
( param: InjectableParamMetadata, params: InjectableParamMetadata[] )
packages/graphql-modules/src/di/resolution.ts:207
↓ 2 callers
Function
factory
(app)
packages/graphql-modules/src/module/factory.ts:69
↓ 2 callers
Function
forceFullGC
()
packages/graphql-modules/tests/memory-leak.spec.ts:53
↓ 2 callers
Function
forwardRef
(forwardRefFn: ForwardRefFn<T>)
packages/graphql-modules/src/di/forward-ref.ts:11
↓ 2 callers
Method
get
(token: any, notFoundValue: any = _THROW_IF_NOT_FOUND)
packages/graphql-modules/src/di/injector.ts:114
↓ 2 callers
Function
getModuleContext
( moduleId: string, ctx: GraphQLModules.GlobalContext )
packages/graphql-modules/src/application/context.ts:198
↓ 2 callers
Method
getUser
(id: number)
examples/basic-with-dependency-injection/src/modules/user/providers/users.ts:12
↓ 2 callers
Function
hasFields
( def: NamedDefinitionNode )
packages/graphql-modules/src/testing/test-module.ts:405
↓ 2 callers
Function
isAsyncIterable
(obj: any)
packages/graphql-modules/src/shared/utils.ts:27
↓ 2 callers
Function
isEnumResolver
(obj: any)
packages/graphql-modules/src/module/resolvers.ts:549
↓ 2 callers
Function
isNamedTypeDefinition
(def: any)
packages/graphql-modules/src/testing/test-module.ts:256
↓ 2 callers
Function
isNil
(val: T | null | undefined)
packages/graphql-modules/src/shared/utils.ts:11
↓ 2 callers
Function
isResolveFn
(value: any)
packages/graphql-modules/src/module/resolvers.ts:523
↓ 2 callers
Function
isResolveOptions
(value: any)
packages/graphql-modules/src/module/resolvers.ts:533
↓ 2 callers
Function
isRootType
(typeName: string)
packages/graphql-modules/src/testing/test-module.ts:435
next →
1–100 of 415, ranked by callers