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

//# sourceMappingURL=traverseFields.js.map