import { promise } from './promise.js';
export const traverseFields = async ({ id, collection, context, doc, fields, overrideAccess, path, req, schemaPath, siblingDoc })=>{
    const promises = [];
    fields.forEach((field, fieldIndex)=>{
        promises.push(promise({
            id,
            collection,
            context,
            doc,
            field,
            fieldIndex,
            overrideAccess,
            parentPath: path,
            parentSchemaPath: schemaPath,
            req,
            siblingDoc
        }));
    });
    await Promise.all(promises);
};

//# sourceMappingURL=traverseFields.js.map