apollo-schema-extend
Version:
Extends your Apollo Server Express based graphql server with an external graphql source
12 lines (11 loc) • 343 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toNamedType = void 0;
const graphql_1 = require("graphql");
const toNamedType = (field) => {
if ((0, graphql_1.isWrappingType)(field)) {
return (0, exports.toNamedType)(field.ofType);
}
return field;
};
exports.toNamedType = toNamedType;