(options: any)
| 7 | const apollo: typeof apolloImport = (apolloImport as any)?.default ?? apolloImport; |
| 8 | |
| 9 | export 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 | ); |