@graphql-tools/links
Version:
A set of utils for faster development of GraphQL tools
11 lines (10 loc) • 651 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createServerHttpLink = void 0;
const tslib_1 = require("tslib");
const UploadHttpLink_mjs_1 = tslib_1.__importDefault(require("apollo-upload-client/UploadHttpLink.mjs"));
const apolloImport = tslib_1.__importStar(require("@apollo/client"));
const AwaitVariablesLink_js_1 = require("./AwaitVariablesLink.js");
const apollo = apolloImport?.default ?? apolloImport;
const createServerHttpLink = (options) => apollo.concat(new AwaitVariablesLink_js_1.AwaitVariablesLink(), new UploadHttpLink_mjs_1.default(options));
exports.createServerHttpLink = createServerHttpLink;