MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / createServerHttpLink

Function createServerHttpLink

packages/links/src/createServerHttpLink.ts:9–19  ·  view source on GitHub ↗
(options: any)

Source from the content-addressed store, hash-verified

7const apollo: typeof apolloImport = (apolloImport as any)?.default ?? apolloImport;
8
9export const createServerHttpLink = (options: any) =>
10 apollo.concat(
11 new AwaitVariablesLink(),
12 new UploadHttpLink({
13 ...options,
14 isExtractableFile: v =>
15 isExtractableFile(v) || v instanceof File || options?.isExtractableFile?.(v),
16 fetch: options?.fetch ?? fetch,
17 FormData: options?.FormData ?? FormData,
18 }) as any,
19 );

Callers 1

upload.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected