@graphql-mesh/utils
Version:
18 lines (17 loc) • 512 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.groupTransforms = void 0;
function groupTransforms(transforms) {
const wrapTransforms = [];
const noWrapTransforms = [];
transforms?.forEach(transform => {
if (transform.noWrap) {
noWrapTransforms.push(transform);
}
else {
wrapTransforms.push(transform);
}
});
return { wrapTransforms, noWrapTransforms };
}
exports.groupTransforms = groupTransforms;
;