UNPKG

@graphql-mesh/utils

Version:
14 lines (13 loc) 365 B
export function groupTransforms(transforms) { const wrapTransforms = []; const noWrapTransforms = []; transforms?.forEach(transform => { if (transform.noWrap) { noWrapTransforms.push(transform); } else { wrapTransforms.push(transform); } }); return { wrapTransforms, noWrapTransforms }; }