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