UNPKG

@graphql-tools/links

Version:

A set of utils for faster development of GraphQL tools

6 lines (5 loc) 353 B
import UploadHttpLink from 'apollo-upload-client/UploadHttpLink.mjs'; import * as apolloImport from '@apollo/client'; import { AwaitVariablesLink } from './AwaitVariablesLink.js'; const apollo = apolloImport?.default ?? apolloImport; export const createServerHttpLink = (options) => apollo.concat(new AwaitVariablesLink(), new UploadHttpLink(options));