import { promise } from './promise.js';
export const traverseFields = ({ collection, context, currentDepth, depth, doc, fallbackLocale, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, populationPromises, req, showHiddenFields, siblingDoc, triggerAccessControl = true, triggerHooks = true })=>{
    fields.forEach((field)=>{
        fieldPromises.push(promise({
            collection,
            context,
            currentDepth,
            depth,
            doc,
            fallbackLocale,
            field,
            fieldPromises,
            findMany,
            flattenLocales,
            global,
            locale,
            overrideAccess,
            populationPromises,
            req,
            showHiddenFields,
            siblingDoc,
            triggerAccessControl,
            triggerHooks
        }));
    });
};

//# sourceMappingURL=traverseFields.js.map