Files
klz-cables.com/.pnpm-store/v10/files/81/b480e1f82ed129487c69514e89b4a838004c706705dfaa6001e7824919bd1a0e8a9d3ed782065609407ac1ef665df76bdbc391a2df12edeca8a1332295eb48
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

26 lines
909 B
Plaintext

import { APIError, createLocalReq } from '../../../index.js';
import { findDistinctOperation } from '../findDistinct.js';
export async function findDistinct(payload, options) {
const { collection: collectionSlug, depth = 0, disableErrors, field, limit, overrideAccess = true, page, populate, showHiddenFields, sort, trash = false, where } = options;
const collection = payload.collections[collectionSlug];
if (!collection) {
throw new APIError(`The collection with slug ${String(collectionSlug)} can't be found. Find Operation.`);
}
return findDistinctOperation({
collection,
depth,
disableErrors,
field,
limit,
overrideAccess,
page,
populate,
req: await createLocalReq(options, payload),
showHiddenFields,
sort,
trash,
where
});
}
//# sourceMappingURL=findDistinct.js.map