@apollo/core-schema
Version:
Apollo Core Schema processing library
8 lines • 383 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.print = exports.test = void 0;
const test = (val) => (val === null || val === void 0 ? void 0 : val.code) === 'Redirect';
exports.test = test;
const print = (val, snap) => `${snap(val.gref)} => ${snap(val.toGref)} (via ${snap(val.via)})`;
exports.print = print;
//# sourceMappingURL=redirect.js.map