import { promise } from './promise.js';
export const traverseFields = async ({ collection, context, data, doc, fields, global, operation, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc })=>{
    const promises = [];
    fields.forEach((field)=>{
        promises.push(promise({
            collection,
            context,
            data,
            doc,
            field,
            global,
            operation,
            previousDoc,
            previousSiblingDoc,
            req,
            siblingData,
            siblingDoc
        }));
    });
    await Promise.all(promises);
};

//# sourceMappingURL=traverseFields.js.map