MCPcopy Create free account

hub / github.com/ardatan/graphql-tools / functions

Functions1,469 in github.com/ardatan/graphql-tools

↓ 82 callersMethodget
* Get a field value from the store for the given type, key and field * name — and optionally field arguments. If the field name is not given, *
packages/mock/src/types.ts:106
↓ 75 callersMethodset
* Set a field value in the store for the given type, key and field * name — and optionally field arguments. * * If the the field return type
packages/mock/src/types.ts:169
↓ 73 callersFunctionparse
({ path, pointer, content, options, }: { path: string; pointer: string; content: string; optio
packages/loaders/git/src/parse.ts:11
↓ 58 callersMethodfilter
(key: string, predicate: (val: Entity) => boolean)
packages/mock/src/MockStore.ts:211
↓ 56 callersMethodfind
(key: string, predicate: (val: Entity) => boolean)
packages/mock/src/MockStore.ts:216
↓ 53 callersMethodadd
(key: K, item: T)
packages/utils/src/AccumulatorMap.ts:9
↓ 52 callersMethodhas
* Checks if a mock is present in the store for the given typeName and key.
packages/mock/src/types.ts:210
↓ 35 callersFunctioncreateUserError
* Creates an error describing invalid application code (GraphQL/Schema) * that must be fixed by the end developer. This should only be used * for lo
packages/relay-compiler/lib/core/CompilerError.js:27
↓ 35 callersFunctionprint
* Converts an IR node into a GraphQL string. Custom Relay * extensions (directives) are not supported; to print fragments with * variables or fragme
packages/relay-compiler/lib/core/IRPrinter.js:26
↓ 33 callersFunctioninvariant
(condition, msg)
packages/relay-compiler/lib/core/RelayFindGraphQLTags.js:111
↓ 27 callersFunctionmapSchema
(schema: GraphQLSchema, schemaMapper: SchemaMapper = {})
packages/utils/src/mapSchema.ts:47
↓ 26 callersMethodtoString
()
packages/import/src/link/link.ts:106
↓ 25 callersFunctionjoin
* Given maybeArray, print an empty string if it is null or empty, otherwise * print all items together separated by separator if provided
packages/utils/src/comments.ts:109
↓ 24 callersFunctionexecute
( args: ExecutionArgs<TData, TVariables, TContext>, )
packages/executor/src/execution/execute.ts:266
↓ 24 callersFunctionmakeExecutableSchema
({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false,
packages/schema/src/makeExecutableSchema.ts:51
↓ 23 callersMethodgetType
(typeName: string)
packages/mock/src/MockStore.ts:649
↓ 21 callersMethodparse
( pointer: string, importedModule: GraphQLSchema | string | DocumentNode, )
packages/loaders/module/src/index.ts:99
↓ 20 callersFunctionasArray
(fns: T | T[])
packages/utils/src/helpers.ts:33
↓ 20 callersFunctiondebugTimerEnd
(name: string)
packages/utils/src/debugTimer.ts:11
↓ 20 callersFunctiondebugTimerStart
(name: string)
packages/utils/src/debugTimer.ts:3
↓ 19 callersFunctionaddToDependencySet
(dependencySet: DependencySet, node: NameNode)
packages/import/src/index.ts:793
↓ 19 callersFunctioncreateGraphQLError
(message: string, options?: GraphQLErrorOptions)
packages/utils/src/errors.ts:49
↓ 19 callersFunctionresolve
()
packages/loaders/code-file/tests/test-files/loaders/schema-export.js:9
↓ 18 callersFunctioncreateCompilerError
* Creates an error describing a problem with the compiler itself - such * as a broken invariant - that must be fixed within the compiler.
packages/relay-compiler/lib/core/CompilerError.js:68
↓ 18 callersMethodnext
()
packages/testing/simplePubSub.ts:39
↓ 18 callersFunctiontest
({ input }: { input: { a?: string; b?: number } })
packages/executor/src/execution/__tests__/oneOf-test.ts:37
↓ 16 callersFunctionexpectJSON
(actual: unknown)
packages/executor/src/__testUtils__/expectJSON.ts:43
↓ 16 callersFunctiongetDirective
( schema: GraphQLSchema, node: DirectableGraphQLObject, directiveName: string, pathToDirectivesInExten
packages/utils/src/get-directives.ts:53
↓ 16 callersFunctionvisitDirectiveNode
(node: DirectiveNode, dependencySet: DependencySet)
packages/import/src/index.ts:889
↓ 15 callersFunctionexecuteSync
(args: ExecutionArgs)
packages/executor/src/execution/execute.ts:344
↓ 14 callersFunctioninspect
(value: unknown)
packages/inspect/src/index.ts:8
↓ 14 callersFunctionresolve
(object: any)
packages/utils/tests/mapSchema.test.ts:812
↓ 14 callersMethodreturn
()
packages/testing/simplePubSub.ts:51
↓ 13 callersMethodtest
(args: { addend1: number }, context: { addend2: number })
packages/executor/src/execution/__tests__/resolve-test.ts:65
↓ 13 callersFunctionvisit
(context, transformed, argumentDefinitions, node)
packages/relay-compiler/lib/core/inferRootArgumentDefinitions.js:184
↓ 12 callersFunctiongetDescriptionNode
(obj: ObjectWithDescription)
packages/utils/src/descriptionFromObject.ts:10
↓ 12 callersFunctionparseGraphQLSDL
( location: string | undefined, rawSDL: string, options: GraphQLParseOptions = {}, )
packages/utils/src/parse-graphql-sdl.ts:15
↓ 12 callersFunctionreadFileSync
(path)
packages/load/tests/__mocks__/fs.js:19
↓ 11 callersFunctionisAsyncIterable
(value: any)
packages/utils/src/isAsyncIterable.ts:1
↓ 11 callersFunctionrunTests
({ sync: executeSync, async: executeAsync }: { sync?: TSync; async?: TAsync })
packages/testing/utils.ts:15
↓ 10 callersFunctiongetDirectiveNodes
( entity: DirectableGraphQLObject & { deprecationReason?: string | null; specifiedByUrl?: string | n
packages/utils/src/print-schema-with-directives.ts:219
↓ 10 callersFunctionmergeDirectives
( d1: ReadonlyArray<DirectiveNode> = [], d2: ReadonlyArray<DirectiveNode> = [], config?: Config, direc
packages/merge/src/typedefs-mergers/directives.ts:111
↓ 10 callersFunctionparse
* Transforms GraphQL text into Relay Compiler's internal, strongly-typed * intermediate representation (IR).
packages/relay-compiler/lib/core/RelayParser.js:78
↓ 9 callersFunctionpathToArray
(path: Maybe<Readonly<Path>>)
packages/utils/src/Path.ts:23
↓ 9 callersFunctionresolve
(rootValue)
packages/executor/src/execution/__tests__/sync-test.ts:19
↓ 8 callersFunctionastFromType
(type: GraphQLType)
packages/utils/src/astFromType.ts:4
↓ 8 callersFunctioneachWithCombinedError
* Iterates over the elements of some iterable value, calling the * supplied callback for each item with a guard for user errors. * * Non-user error
packages/relay-compiler/lib/core/CompilerError.js:94
↓ 8 callersFunctionexecutor
(request: ExecutionRequest)
packages/executors/legacy-ws/src/index.ts:90
↓ 8 callersMethodgetMergedOptions
(options: CodeFileLoaderOptions)
packages/loaders/code-file/src/index.ts:89
↓ 8 callersFunctionisRef
( maybeRef: unknown, )
packages/mock/src/types.ts:225
↓ 7 callersFunctionexistsSync
(path)
packages/load/tests/__mocks__/fs.js:13
↓ 7 callersMethodgetFieldType
(typeName: string, fieldName: string)
packages/mock/src/MockStore.ts:633
↓ 7 callersFunctionisValidPath
(str: any)
packages/utils/src/helpers.ts:90
↓ 7 callersFunctionlocatedError
( rawError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined, path: Maybe<ReadonlyArray<stri
packages/utils/src/errors.ts:91
↓ 7 callersFunctionprintSchemaWithDirectives
( schema: GraphQLSchema, options: PrintSchemaWithDirectivesOptions = {}, )
packages/utils/src/print-schema-with-directives.ts:120
↓ 7 callersFunctionsortExecutableNodes
( nodes: readonly ASTNode[] | undefined, )
packages/documents/src/sort-executable-nodes.ts:28
↓ 7 callersMethodtoBeSimilarGqlDoc
* Normalizes whitespace and performs string comparisons
packages/testing/to-be-similar-gql-doc.ts:12
↓ 6 callersFunctionaddPath
( prev: Readonly<Path> | undefined, key: string | number, typename: string | undefined, )
packages/utils/src/Path.ts:12
↓ 6 callersFunctionextractData
(pointer: string)
packages/loaders/git/src/index.ts:16
↓ 6 callersFunctiongetDocumentNodeFromSchema
( schema: GraphQLSchema, options: GetDocumentNodeFromSchemaOptions = {}, )
packages/utils/src/print-schema-with-directives.ts:66
↓ 6 callersFunctionisRecord
(obj: unknown)
packages/mock/src/types.ts:240
↓ 6 callersMethodload
(pointer: string, options?: TOptions)
packages/utils/src/loaders.ts:22
↓ 6 callersFunctionmemoize1
(fn: F)
packages/utils/src/memoize.ts:1
↓ 6 callersFunctionnormalizedExecutor
( args: ExecutionArgs<TData, TVariables, TContext>, )
packages/executor/src/execution/normalizedExecutor.ts:19
↓ 6 callersFunctiontestIf
(condition: boolean)
packages/testing/utils.ts:91
↓ 6 callersFunctionvisitFieldDefinitionNode
( node: FieldDefinitionNode, dependencySet: DependencySet, dependenciesByDefinitionName: DependenciesByD
packages/import/src/index.ts:896
↓ 6 callersFunctionvisitInputValueDefinitionNode
( node: InputValueDefinitionNode, dependencySet: DependencySet, dependenciesByDefinitionName: Dependenci
packages/import/src/index.ts:953
↓ 5 callersFunctionaddMocksToSchema
({ schema, store: maybeStore, mocks, mockGenerationBehavior, typePolicies, resolvers: resolversOrF
packages/mock/src/addMocksToSchema.ts:93
↓ 5 callersFunctionaddResolversToSchema
({ schema, resolvers: inputResolvers, defaultFieldResolver, resolverValidationOptions = {}, inheritR
packages/schema/src/addResolversToSchema.ts:32
↓ 5 callersFunctionastFromValueUntyped
(value: any)
packages/utils/src/astFromValueUntyped.ts:19
↓ 5 callersFunctioncoerceError
(error: unknown)
packages/executor/src/execution/coerceError.ts:1
↓ 5 callersFunctioncorrectASTNodes
(type: GraphQLNamedType)
packages/utils/src/mapSchema.ts:545
↓ 5 callersFunctionemptyQueue
()
packages/utils/src/observableToAsyncIterable.ts:73
↓ 5 callersFunctionensureSchema
(ctx?: any)
packages/executors/envelop/src/index.ts:52
↓ 5 callersFunctionfilterSubsequentPayloads
( exeContext: ExecutionContext, nullPath: Path, currentAsyncRecord: AsyncPayloadRecord | undefined, )
packages/executor/src/execution/execute.ts:2161
↓ 5 callersFunctionformatExtension
(extension: string)
packages/load-files/src/index.ts:70
↓ 5 callersFunctiongetDirectiveExtensions
( directableObj: DirectableObject, schema?: GraphQLSchema, pathToDirectivesInExtensions: string[] = ['di
packages/utils/src/getDirectiveExtensions.ts:16
↓ 5 callersFunctionhandleFieldError
( error: GraphQLError, returnType: GraphQLOutputType, errors: Array<GraphQLError>, )
packages/executor/src/execution/execute.ts:836
↓ 5 callersFunctionhealType
(type: T)
packages/utils/src/heal.ts:194
↓ 5 callersFunctionisExecutableDefinitionAST
* @public * * Determine if an AST node contains a fragment/operation definition.
packages/relay-compiler/lib/core/SchemaUtils.js:23
↓ 5 callersFunctionisObjectLike
(value: unknown)
packages/utils/src/jsutils.ts:7
↓ 5 callersFunctionmergeDeep
( sources: S, respectPrototype = false, respectArrays = false, respectArrayLength = false, respectNo
packages/utils/src/mergeDeep.ts:9
↓ 5 callersFunctionprintArguments
(schema, args)
packages/relay-compiler/lib/core/IRPrinter.js:389
↓ 5 callersFunctionresolveOnNextTick
()
packages/executor/src/__testUtils__/resolveOnNextTick.ts:1
↓ 5 callersMethodserialize
(value)
packages/utils/tests/mapSchema.test.ts:645
↓ 5 callersMethodsubscribe
(observer: Observer<T>)
packages/utils/src/observableToAsyncIterable.ts:10
↓ 5 callersMethodthrow
(error: unknown)
packages/testing/simplePubSub.ts:55
↓ 5 callersFunctionuseMonorepo
({ dirname }: { dirname: string })
packages/testing/utils.ts:52
↓ 5 callersFunctionvalidate
({ code, options }: { code: string; options: GraphQLTagPluckOptions })
packages/graphql-tag-pluck/src/index.ts:325
↓ 5 callersFunctionvisitNamedTypeNode
(node: NamedTypeNode, dependencySet: DependencySet)
packages/import/src/index.ts:946
↓ 4 callersFunctionaddInterfaceDependencies
( node: any, dependencySet: DependencySet, dependenciesByDefinitionName: DependenciesByDefinitionName, )
packages/import/src/index.ts:849
↓ 4 callersFunctionaddSource
({ source }: { pointer: string; source: Source })
packages/load/src/load-typedefs/collect-sources.ts:111
↓ 4 callersFunctionassertIsRef
( maybeRef: unknown, message?: string, )
packages/mock/src/types.ts:231
↓ 4 callersFunctionassertSome
( input: T, message = 'Value should be something', )
packages/utils/src/helpers.ts:136
↓ 4 callersFunctionbuildFragmentSpread
(fragment)
packages/relay-compiler/lib/transforms/query-generators/utils.js:19
↓ 4 callersFunctionbuildLocation
* @private
packages/relay-compiler/lib/core/RelayParser.js:1686
↓ 4 callersFunctionbuildOperationArgumentDefinitions
(argumentDefinitions)
packages/relay-compiler/lib/transforms/query-generators/utils.js:71
↓ 4 callersFunctioncompleteValue
* Implements the instructions for completeValue as defined in the * "Value Completion" section of the spec. * * If the field type is Non-Null, then
packages/executor/src/execution/execute.ts:878
↓ 4 callersFunctioncreateNonRecoverableUserError
* Similar to createUserError but for errors that are *not* recoverable: * the compiler should not continue to process other inputs because their * v
packages/relay-compiler/lib/core/CompilerError.js:46
↓ 4 callersFunctionextractData
(pointer: string)
packages/loaders/module/src/index.ts:14
next →1–100 of 1,469, ranked by callers