MCPcopy Index your code

hub / github.com/urql-graphql/urql / functions

Functions705 in github.com/urql-graphql/urql

↓ 296 callersFunctiongql
(parts: string | TemplateStringsArray /* arguments */)
packages/core/src/gql.ts:65
↓ 124 callersFunctionnext
({ done, value, }: { done?: boolean; value: ExecutionResult;
exchanges/execute/src/execute.ts:72
↓ 117 callersMethodget
(key: number)
packages/react-urql/src/hooks/cache.ts:7
↓ 105 callersFunctionquery
(query, variables, context)
packages/core/src/client.ts:833
↓ 104 callersMethodcreateRequestOperation
Creates an `Operation` from a `GraphQLRequest` and optionally, overriding `OperationContext` options. * * @param kind - The {@link OperationType
packages/core/src/client.ts:265
↓ 97 callersFunctionmakeOperation
(kind, request, context)
packages/core/src/utils/operation.ts:53
↓ 83 callersMethodresolve
Returns a cached value on a given entity’s field. * * @param entity - a GraphQL object (“entity”) or an entity key. * @param fieldName - the
exchanges/graphcache/src/types.ts:330
↓ 71 callersFunctionsubscribe
(observer)
packages/core/src/exchanges/subscription.test.ts:35
↓ 64 callersFunctionitemNode
(numItem: number)
exchanges/graphcache/src/extras/relayPagination.test.ts:8
↓ 61 callersFunctionitemEdge
(numItem: number)
exchanges/graphcache/src/extras/relayPagination.test.ts:15
↓ 55 callersMethodnext
()
exchanges/graphcache/src/operations/shared.ts:215
↓ 53 callersFunctioncreateRequest
( _query: DocumentInput<Data, Variables>, _variables: Variables, extensions?: RequestExtensions | undefi
packages/core/src/utils/request.ts:167
↓ 52 callersFunctioncacheExchange
(opts?: C)
exchanges/graphcache/src/cacheExchange.ts:69
↓ 51 callersMethodset
(key: number, value: CacheEntry)
packages/react-urql/src/hooks/cache.ts:8
↓ 41 callersMethodexecuteRequestOperation
Creates a `Source` that executes the `Operation` and issues `OperationResult`s for this `Operation`. * * @param operation - {@link Operation} th
packages/core/src/client.ts:297
↓ 36 callersFunctionformatDocument
( node: T )
packages/core/src/utils/formatDocument.ts:106
↓ 33 callersFunctioninvariant
( condition: any, message: string, code: ErrorCode )
exchanges/graphcache/src/helpers/help.ts:76
↓ 32 callersFunctionstringifyVariables
(x: any, includeFiles?: boolean)
packages/core/src/utils/variables.ts:83
↓ 23 callersFunctionexpectCacheIntegrity
(testcase: TestCase)
exchanges/graphcache/src/test-utils/suite.test.ts:14
↓ 23 callersFunctionrelayPagination
( params: PaginationParams = {} )
exchanges/graphcache/src/extras/relayPagination.ts:284
↓ 23 callersFunctionuseQuery
( args: UseQueryArgs<T, V> )
packages/vue-urql/src/useQuery.ts:232
↓ 22 callersMethodkeyOfEntity
Returns the cache key for a given entity or `null` if it’s unkeyable. * * @param entity - the {@link Entity} to generate a key for. * @return
exchanges/graphcache/src/types.ts:287
↓ 22 callersFunctionwarn
( message: string, code: ErrorCode, logger: Logger | undefined )
exchanges/graphcache/src/helpers/help.ts:93
↓ 21 callersFunctiongetMainOperation
Returns the main operation's definition
exchanges/graphcache/src/ast/traversal.ts:21
↓ 21 callersFunctionmakeResult
( operation: Operation, result: ExecutionResult, response?: any )
packages/core/src/utils/result.ts:26
↓ 20 callersFunctionmergeResultPatch
( prevResult: OperationResult, nextResult: ExecutionResult, response?: any, pending?: ExecutionResult[
packages/core/src/utils/result.ts:96
↓ 20 callersFunctionminifyIntrospectionQuery
( schema: IntrospectionQuery, opts: MinifySchemaOptions = {} )
packages/introspection/src/minifyIntrospectionQuery.ts:219
↓ 19 callersFunctiongetSelectionSet
(node: { selectionSet?: FormattedNode<SelectionSetNode>; })
exchanges/graphcache/src/ast/node.ts:35
↓ 19 callersFunctionmakeAsyncStorage
({ dataKey = 'graphcache-data', metadataKey = 'graphcache-metadata', maxAge = 7, } = {})
packages/storage-rn/src/makeAsyncStorage.ts:53
↓ 18 callersFunctionget
( target: CreateQueryState<Data, Variables>, prop: keyof CreateQueryState<Data, Variables> )
packages/solid-urql/src/createQuery.ts:325
↓ 18 callersFunctionmakeFetchBody
(request: Omit<GraphQLRequest<Data, Variables>, 'key'>)
packages/core/src/internal/fetchOptions.ts:24
↓ 18 callersFunctionuseQuery
(args: UseQueryArgs<Variables, Data>)
packages/react-urql/src/hooks/useQuery.ts:220
↓ 17 callersFunctionmocked
(x: any)
exchanges/execute/src/execute.test.ts:39
↓ 15 callersFunctionexecuteExchange
(options: ExecuteExchangeArgs)
exchanges/execute/src/execute.ts:120
↓ 15 callersMethodexecuteQuery
Creates a `Source` that executes the GraphQL query operation for the passed `GraphQLRequest`. * * @param query - a {@link GraphQLRequest} * @
packages/core/src/client.ts:391
↓ 15 callersFunctionmakeFetchSource
( operation: Operation, url: string, fetchOptions: RequestInit )
packages/core/src/internal/fetchSource.ts:262
↓ 15 callersFunctionpopulateExchange
({ schema: ogSchema, options }: PopulateExchangeOpts)
exchanges/populate/src/populateExchange.ts:115
↓ 15 callersFunctionresolve
()
examples/with-subscriptions-via-fetch/server/schema.js:23
↓ 14 callersMethodextractData
Server-side method to get all serialized results the {@link SSRExchange} has captured. * @returns an {@link SSRData} dictionary.
packages/core/src/exchanges/ssr.ts:103
↓ 14 callersFunctionssrExchange
(params: SSRExchangeParams = {})
packages/core/src/exchanges/ssr.ts:188
↓ 14 callersFunctionstringifyDocument
( node: string | DefinitionNode | DocumentNode )
packages/core/src/utils/request.ts:65
↓ 13 callersFunctioncleanup
()
scripts/rollup/cleanup-plugin.mjs:3
↓ 13 callersFunctionmount
packages/site/src/index.js:12
↓ 12 callersFunctionauthExchange
( init: (utilities: AuthUtilities) => Promise<AuthConfig> )
exchanges/auth/src/authExchange.ts:198
↓ 12 callersFunctionexecute
()
packages/react-urql/src/components/Mutation.test.tsx:43
↓ 12 callersFunctionwrap
(json: object)
packages/core/src/internal/fetchSource.test.ts:247
↓ 11 callersMethodappendHeaders
Adds additional HTTP headers to an `Operation`. * * @param operation - An {@link Operation} to add headers to. * @param headers - The HTTP he
exchanges/auth/src/authExchange.ts:61
↓ 11 callersFunctioncreateQuery
(args: UseQueryArgs)
packages/vue-urql/src/useQuery.test.ts:21
↓ 11 callersMethodexecuteSubscription
Creates a `Source` that executes the GraphQL subscription operation for the passed `GraphQLRequest`. * * @param query - a {@link GraphQLRequest}
packages/core/src/client.ts:457
↓ 11 callersMethodinspectFields
Returns a list of cached fields for a given GraphQL object (“entity”). * * @param entity - a GraphQL object (“entity”) or an entity key. * @r
exchanges/graphcache/src/types.ts:355
↓ 11 callersMethodreexecuteOperation
Dispatches an `Operation` to the `Exchange` pipeline, if this `Operation` is active. * * @remarks * This method is frequently used in {@link
packages/core/src/client.ts:231
↓ 11 callersMethodrender
()
packages/site/src/screens/home/features.js:60
↓ 11 callersFunctionuseClient
(key: string = DEFAULT_KEY)
packages/vue-urql/src/useClient.ts:107
↓ 10 callersFunctioncomplete
()
packages/core/src/exchanges/subscription.ts:170
↓ 10 callersFunctiondispatchDebug
(event)
packages/core/src/exchanges/compose.ts:40
↓ 10 callersFunctionfrag
(value: string)
exchanges/graphcache/src/ast/schemaPredicates.test.ts:16
↓ 10 callersFunctiongetName
(node: { name: NameNode })
exchanges/graphcache/src/ast/node.ts:23
↓ 10 callersFunctionis
(a, b)
scripts/prepare/index.js:34
↓ 10 callersFunctionmakeExchangeArgs
()
exchanges/auth/src/authExchange.test.ts:31
↓ 10 callersFunctionmapExchange
({ onOperation, onResult, onError, }: MapExchangeOpts)
packages/core/src/exchanges/map.ts:78
↓ 9 callersFunctioncacheExchange
({ forward, client, dispatchDebug })
packages/core/src/exchanges/cache.ts:53
↓ 9 callersFunctioncomputeNextState
( prevState: T, result: Partial<T> )
packages/react-urql/src/hooks/state.ts:47
↓ 9 callersFunctioncreateQuery
( args: CreateQueryArgs<Data, Variables> )
packages/solid-urql/src/createQuery.ts:170
↓ 9 callersMethodexecuteMutation
Creates a `Source` that executes the GraphQL mutation operation for the passed `GraphQLRequest`. * * @param query - a {@link GraphQLRequest}
packages/core/src/client.ts:526
↓ 9 callersFunctiongetPackageManifest
scripts/actions/lib/packages.mjs:7
↓ 9 callersFunctionkeyOfField
(fieldName: string, args?: FieldArgs)
exchanges/graphcache/src/store/keys.ts:4
↓ 9 callersFunctionmocked
(x: any)
exchanges/graphcache/src/store/store.test.ts:25
↓ 9 callersMethodmutation
Creates a `Source` that executes the GraphQL mutation operation created from the passed parameters. * * @param query - a GraphQL document contai
packages/core/src/client.ts:507
↓ 9 callersMethodquery
Creates a `Source` that executes the GraphQL query operation created from the passed parameters. * * @param query - a GraphQL document containin
packages/core/src/client.ts:346
↓ 9 callersFunctionsimplePagination
({ offsetArgument = 'skip', limitArgument = 'limit', mergeMode = 'after', }: PaginationParams = {})
exchanges/graphcache/src/extras/simplePagination.ts:38
↓ 9 callersFunctionssr
({ client, forward })
packages/core/src/exchanges/ssr.ts:211
↓ 8 callersFunctionconcatEdges
( cache: Cache, leftEdges: NullArray<string>, rightEdges: NullArray<string> )
exchanges/graphcache/src/extras/relayPagination.ts:45
↓ 8 callersFunctionconcatNodes
( leftNodes: NullArray<string>, rightNodes: NullArray<string> )
exchanges/graphcache/src/extras/relayPagination.ts:70
↓ 8 callersFunctiondeferDispatch
( setState: F, value?: F extends Dispatch<infer State> ? State : void )
packages/react-urql/src/hooks/state.ts:78
↓ 8 callersFunctionfetchExchange
({ forward, dispatchDebug })
packages/core/src/exchanges/fetch.ts:29
↓ 8 callersFunctionmakeErrorResult
( operation: Operation, error: Error, response?: any )
packages/core/src/utils/result.ts:195
↓ 8 callersFunctionphash
(x: string, seed?: HashValue)
packages/core/src/utils/hash.ts:32
↓ 8 callersFunctionretryExchange
(options: RetryExchangeOptions = {})
exchanges/retry/src/retryExchange.ts:111
↓ 8 callersFunctionshouldInclude
( node: FormattedNode<SelectionNode>, vars: Variables )
exchanges/graphcache/src/ast/traversal.ts:52
↓ 8 callersMethodupdateQuery
Updates a GraphQL query‘s cached data. * * @param input - a {@link QueryInput}, which is a GraphQL query request. * @param updater - a functi
exchanges/graphcache/src/types.ts:402
↓ 8 callersFunctionuseClient
()
packages/react-urql/src/context.ts:65
↓ 8 callersFunctionuseMutation
( query: DocumentInput<T, V> )
packages/vue-urql/src/useMutation.ts:131
↓ 7 callersMethodclear
Clears the entire IndexedDB storage.
exchanges/graphcache/src/default-storage/index.ts:45
↓ 7 callersFunctionensureKey
(x: any)
exchanges/graphcache/src/extras/relayPagination.ts:43
↓ 7 callersFunctioninitDataState
( operationType: OperationType, data: InMemoryData, layerKey?: number | null, isOptimistic?: boolean,
exchanges/graphcache/src/store/data.ts:102
↓ 7 callersFunctionmakeFetchURL
( operation: Operation, body?: FetchBody )
packages/core/src/internal/fetchOptions.ts:66
↓ 7 callersFunctionnormalizeVariables
( node: OperationDefinitionNode, input: void | Record<string, unknown> )
exchanges/graphcache/src/ast/variables.ts:50
↓ 7 callersFunctionpersistedExchange
(options?: PersistedExchangeOptions)
exchanges/persisted/src/persistedExchange.ts:136
↓ 7 callersMethodrestoreData
Client-side method to add serialized results to the {@link SSRExchange}. * @param data - {@link SSRData},
packages/core/src/exchanges/ssr.ts:99
↓ 7 callersMethodwriteData
Called by the {@link cacheExchange} to write new data to the offline storage. * @remarks * `writeData` is called when Graphcache updated its cac
exchanges/graphcache/src/types.ts:978
↓ 6 callersMethodchildren
(arg: MutationState<Data, Variables>)
packages/react-urql/src/components/Mutation.ts:22
↓ 6 callersFunctionclearDataState
()
exchanges/graphcache/src/store/data.ts:164
↓ 6 callersFunctioncollectTypenames
(response: object)
packages/core/src/utils/collectTypenames.ts:30
↓ 6 callersFunctioncreateSubscription
( args: CreateSubscriptionArgs<Data, Variables>, handler?: SubscriptionHandler<Data, Result> )
packages/solid-urql/src/createSubscription.ts:208
↓ 6 callersFunctionexecute
()
packages/preact-urql/src/components/Mutation.test.tsx:34
↓ 6 callersFunctionmakeExchangeArgs
()
exchanges/persisted/src/persistedExchange.test.ts:22
↓ 6 callersFunctionmakeFetchOptions
( operation: Operation, body?: FetchBody )
packages/core/src/internal/fetchOptions.ts:145
↓ 6 callersFunctionmapType
(fromType: any)
packages/introspection/src/minifyIntrospectionQuery.ts:19
↓ 6 callersMethodreadData
Called to rehydrate data when the {@link cacheExchange} first loads. * @remarks * `readData` is called when Graphcache first starts up, and load
exchanges/graphcache/src/types.ts:971
↓ 6 callersFunctionreadSelection
( ctx: Context, key: string, select: FormattedNode<SelectionSet>, input: Data, result?: Data )
exchanges/graphcache/src/operations/query.ts:343
next →1–100 of 705, ranked by callers