MCPcopy Index your code

hub / github.com/nearform/graphql-hooks / functions

Functions194 in github.com/nearform/graphql-hooks

↓ 65 callersFunctionuseQuery
( query: string | TypedDocumentNode<ResponseData, Variables>, opts: UseQueryOptions<ResponseData, Variable
packages/graphql-hooks/src/useQuery.ts:20
↓ 44 callersFunctionuseClientRequest
( query: string | TypedDocumentNode<ResponseData, Variables>, initialOpts: UseClientRequestOptions<Respons
packages/graphql-hooks/src/useClientRequest.ts:88
↓ 36 callersMethodrequest
()
packages/graphql-hooks/test-jsdom/unit/useSubscription.test.tsx:47
↓ 16 callersFunctionfnv1a
(input)
packages/graphql-hooks-memcache/src/fnv1a.js:40
↓ 13 callersMethodget
(keyObject: CacheKeyObject)
packages/graphql-hooks/src/types/common-types.ts:116
↓ 13 callersFunctionuseSubscription
( options: UseSubscriptionOperation<Variables> & { skip?: boolean }, callback: (response: { data?: Res
packages/graphql-hooks/src/useSubscription.ts:8
↓ 12 callersFunctionmemCache
({ size = 100, ttl = 0, debug = false, initialState } = {})
packages/graphql-hooks-memcache/src/index.js:8
↓ 12 callersMethodset
(keyObject: object, data: object)
packages/graphql-hooks-memcache/index.d.ts:11
↓ 11 callersMethodget
(keyObject: object)
packages/graphql-hooks-memcache/index.d.ts:10
↓ 11 callersMethodgetCacheKey
( operation: Operation, options: UseClientRequestOptions<any, Variables> = {} )
packages/graphql-hooks/src/GraphQLClient.ts:177
↓ 10 callersMethodkeys
()
packages/graphql-hooks-memcache/index.d.ts:14
↓ 9 callersMethodgenerateResult
({ fetchError, httpError, graphQLErrors, data, headers }: GenerateResultOptions<Response
packages/graphql-hooks/src/GraphQLClient.ts:157
↓ 9 callersFunctionuseMutation
( query: string | TypedDocumentNode<ResponseData, Variables>, options: Omit< UseClientRequestOptions<R
packages/graphql-hooks/src/useMutation.ts:11
↓ 8 callersMethodgetFetchOptions
(operation, fetchOptionsOverrides = {})
packages/graphql-hooks/src/GraphQLClient.ts:211
↓ 6 callersFunctiongetInitialState
(opts)
packages/graphql-hooks-ssr/index.js:3
↓ 6 callersFunctionmockQuery
(id: number)
packages/graphql-hooks/test-jsdom/integration/useQuery.test.tsx:218
↓ 6 callersMethodset
(keyObject: CacheKeyObject, data: object)
packages/graphql-hooks/src/types/common-types.ts:117
↓ 6 callersFunctionuseManualQuery
( query: string | TypedDocumentNode<ResponseData, Variables>, options: Omit< UseClientRequestOptions<R
packages/graphql-hooks/src/useManualQuery.ts:11
↓ 5 callersFunctioncreateRefetchMutationsMap
( refetchAfterMutations?: RefetchAfterMutationsData<TResult, TVariables> )
packages/graphql-hooks/src/createRefetchMutationsMap.ts:19
↓ 5 callersFunctionextractOperationName
(document: DocumentNode | string)
packages/graphql-hooks/src/utils.ts:15
↓ 5 callersMethodinvalidateQuery
(query: Operation | string)
packages/graphql-hooks/src/GraphQLClient.ts:428
↓ 5 callersMethodlogErrorResult
({ result, operation })
packages/graphql-hooks/src/GraphQLClient.ts:124
↓ 5 callersMethodsetQueryData
( query: Operation | string, updater: (oldState?: any) => any )
packages/graphql-hooks/src/GraphQLClient.ts:444
↓ 5 callersMethodsubscribe
(next, onError, onComplete)
packages/graphql-hooks/test-jsdom/unit/useSubscription.test.tsx:51
↓ 4 callersFunctionpipeP
(fns: (() => any)[])
packages/graphql-hooks/src/utils.ts:12
↓ 4 callersMethodrender
(element: ReactElement)
packages/graphql-hooks-ssr/index.d.ts:8
↓ 4 callersFunctionsha256
(query)
packages/graphql-hooks/src/middlewares/apqMiddleware.ts:9
↓ 4 callersFunctionuseDeepCompareCallback
( callback: T, deps: DependencyList )
packages/graphql-hooks/src/useDeepCompareCallback.ts:8
↓ 3 callersFunctioncallback
packages/graphql-hooks/test-jsdom/unit/useSubscription.test.tsx:158
↓ 3 callersFunctioncollectErrors
(entry: object)
packages/graphql-hooks/src/LocalGraphQLClient.ts:140
↓ 3 callersFunctioncreateMockClient
()
packages/graphql-hooks/test-jsdom/unit/useSubscription.test.tsx:356
↓ 3 callersFunctioncreateMockResponse
(options: Partial<Response> = {})
packages/graphql-hooks/test-jsdom/utils.ts:4
↓ 3 callersFunctiongenerateKey
(keyObj)
packages/graphql-hooks-memcache/src/index.js:4
↓ 3 callersFunctiongetWrapper
(client: GraphQLClient)
packages/graphql-hooks/test-jsdom/integration/useManualQuery.test.tsx:7
↓ 3 callersFunctiongraphql
(source: string)
examples/typescript/src/gql/gql.ts:48
↓ 3 callersFunctionrenderHookWithDeps
(callback: (props: T) => U, props: T)
packages/graphql-hooks/test-jsdom/unit/useDeepCompareCallback.test.ts:4
↓ 3 callersMethodrequest
( operation: Operation<TVariables>, options?: RequestOptions )
packages/graphql-hooks/src/GraphQLClient.ts:267
↓ 3 callersMethodrun
* Run middleware * @param {opts.client} GraphQLClient instance * @param {opts.operation} Operation object with properties such as query and vari
packages/graphql-hooks/src/Middleware.js:45
↓ 3 callersMethodsaveCache
(cacheKey, value)
packages/graphql-hooks/src/GraphQLClient.ts:199
↓ 3 callersMethodunsubscribe
()
packages/graphql-hooks/test-jsdom/unit/useSubscription.test.tsx:66
↓ 2 callersFunctionAsyncMidd
(logger, timeout)
packages/graphql-hooks/test-jsdom/integration/GraphQLClient.test.ts:49
↓ 2 callersFunctionCacheMiddleware
()
packages/graphql-hooks/src/middlewares/examples/cacheMiddleware.ts:8
↓ 2 callersFunctionDebugMiddleware
(logger = console.log)
packages/graphql-hooks/src/middlewares/examples/debugMiddleware.ts:8
↓ 2 callersFunctionapplyResponseReducer
( responseReducer: RequestOptions['responseReducer'], data, response: Response )
packages/graphql-hooks/src/GraphQLClient.ts:469
↓ 2 callersMethodclear
()
packages/graphql-hooks-memcache/index.d.ts:13
↓ 2 callersFunctioncreateMockCache
()
packages/graphql-hooks/test-jsdom/utils.ts:12
↓ 2 callersMethodcreateSubscription
(operationPayload)
packages/graphql-hooks/src/GraphQLClient.ts:407
↓ 2 callersMethoddelete
(keyObject: object)
packages/graphql-hooks-memcache/index.d.ts:12
↓ 2 callersFunctiondoFetch
()
packages/graphql-hooks/test-jsdom/unit/useClientRequest.test.tsx:375
↓ 2 callersFunctiongenerateRollupConfig
({ name, overrides, entryPoint })
config/rollup.config.js:16
↓ 2 callersMethodgetInitialState
()
packages/graphql-hooks-memcache/index.d.ts:15
↓ 2 callersMethodgetInitialState
()
packages/graphql-hooks/src/types/common-types.ts:121
↓ 2 callersFunctiongetManifest
()
examples/fastify-ssr/src/server/helpers/manifest.js:12
↓ 2 callersFunctiongetWrapper
(client: GraphQLClient)
packages/graphql-hooks/test-jsdom/integration/useQuery.test.tsx:13
↓ 2 callersFunctionhandleEvents
(payload, actionType)
packages/graphql-hooks/src/useClientRequest.ts:294
↓ 2 callersFunctionstringifyDocumentNode
( document: TNode )
packages/graphql-hooks/src/utils.ts:30
↓ 2 callersMethodupdateData
(previousData: ResponseData, data: ResponseData)
packages/graphql-hooks/src/types/common-types.ts:183
↓ 2 callersFunctionuseQueryClient
()
packages/graphql-hooks/src/useQueryClient.ts:5
↓ 1 callersFunctionSyncMidd
packages/graphql-hooks/test-jsdom/integration/GraphQLClient.test.ts:60
↓ 1 callersMethodaddResponseHook
packages/graphql-hooks/src/GraphQLClient.ts:272
↓ 1 callersFunctionappendJSON
(json)
packages/babel-plugin-extract-gql/src/index.js:9
↓ 1 callersFunctioncollectErrorsFromArray
(arrayIn: object[])
packages/graphql-hooks/src/LocalGraphQLClient.ts:122
↓ 1 callersFunctioncollectErrorsFromObject
(objectIn: object)
packages/graphql-hooks/src/LocalGraphQLClient.ts:104
↓ 1 callersFunctioncreateMockSubscriptionClient
()
packages/graphql-hooks/test-jsdom/utils.ts:23
↓ 1 callersMethoddelete
(keyObject: CacheKeyObject)
packages/graphql-hooks/src/types/common-types.ts:118
↓ 1 callersFunctiondoUnmount
()
packages/graphql-hooks/test-jsdom/unit/useClientRequest.test.tsx:563
↓ 1 callersFunctionfilter
()
packages/graphql-hooks/test-jsdom/unit/createRefetchMutationsMap.test.ts:21
↓ 1 callersFunctionfn
()
packages/graphql-hooks/test-jsdom/unit/useClientRequest.test.tsx:770
↓ 1 callersFunctionfnv1aString
(string)
packages/graphql-hooks-memcache/src/fnv1a.js:26
↓ 1 callersFunctiongetBundlePath
(manifestKey)
examples/fastify-ssr/src/server/helpers/manifest.js:30
↓ 1 callersMethodgetCache
(cacheKey)
packages/graphql-hooks/src/GraphQLClient.ts:191
↓ 1 callersFunctiongetDocument
(query: string)
packages/graphql-hooks/test-jsdom/unit/useClientRequest.test.tsx:21
↓ 1 callersFunctiongetTestWrapper
packages/graphql-hooks/test-jsdom/unit/LocalGraphQLClient.test.tsx:83
↓ 1 callersFunctionisGraphQLWsClient
(value: any)
packages/graphql-hooks/src/GraphQLClient.ts:465
↓ 1 callersFunctionisObject
(o: unknown)
packages/graphql-hooks/src/LocalGraphQLClient.ts:100
↓ 1 callersFunctionisPersistedQueryNotFound
(error: APIError<GraphQLResponseError>)
packages/graphql-hooks/src/middlewares/apqMiddleware.ts:25
↓ 1 callersFunctionisRefetchAfterMutationItem
( item: unknown )
packages/graphql-hooks/src/createRefetchMutationsMap.ts:9
↓ 1 callersFunctionisTypedDocumentNode
(item: unknown)
packages/graphql-hooks/src/createRefetchMutationsMap.ts:15
↓ 1 callersMethodkeys
()
packages/graphql-hooks/src/types/common-types.ts:120
↓ 1 callersMethodonSuccess
( result: Result<ResponseData, TGraphQLError>, variables: Variables )
packages/graphql-hooks/src/types/common-types.ts:187
↓ 1 callersMethodremoveCache
(cacheKey)
packages/graphql-hooks/src/GraphQLClient.ts:205
↓ 1 callersMethodremoveHeader
(key)
packages/graphql-hooks/src/GraphQLClient.ts:119
↓ 1 callersFunctionrenderHead
()
examples/fastify-ssr/src/server/handlers/app-shell.js:18
↓ 1 callersFunctionrenderScripts
({ initialState })
examples/fastify-ssr/src/server/handlers/app-shell.js:26
↓ 1 callersMethodrequestViaHttp
( operation: Operation<TVariables>, options: RequestOptions = {} )
packages/graphql-hooks/src/GraphQLClient.ts:308
↓ 1 callersMethodrequestViaWS
(operationPayload)
packages/graphql-hooks/src/GraphQLClient.ts:386
↓ 1 callersMethodsetHeader
(key, value)
packages/graphql-hooks/src/GraphQLClient.ts:109
↓ 1 callersMethodsetHeaders
(headers)
packages/graphql-hooks/src/GraphQLClient.ts:114
↓ 1 callersFunctionsideEffectMiddie
packages/graphql-hooks/test-jsdom/unit/Middleware.test.ts:9
↓ 1 callersFunctionstart
()
examples/persisted-queries/server/mercurius.ts:35
↓ 1 callersFunctiontimeoutPromise
(delayInMs)
packages/graphql-hooks/src/LocalGraphQLClient.ts:94
↓ 1 callersFunctionupdateData
()
packages/graphql-hooks/test-jsdom/unit/useQuery.test.tsx:123
↓ 1 callersMethodverifyConfig
Checks that the given config has the correct required options
packages/graphql-hooks/src/GraphQLClient.ts:78
FunctionAPQMiddleware
( { operation, client, resolve, reject }, next )
packages/graphql-hooks/src/middlewares/apqMiddleware.ts:49
FunctionAdd
()
examples/persisted-queries/client/src/App.tsx:14
FunctionAddPost
()
examples/typescript/src/App.tsx:51
FunctionApp
()
packages/babel-plugin-extract-gql/examples/proj-a/src/App.js:11
FunctionApp
()
examples/persisted-queries/client/src/App.tsx:40
FunctionApp
()
examples/typescript/src/App.tsx:158
FunctionApp
()
examples/subscription/src/client/App.js:49
next →1–100 of 194, ranked by callers