Files
klz-cables.com/.pnpm-store/v10/files/07/835e58f70cbf848f58aa509a0734f3831f95f44e2103f2b42cbdc55d6f612219c58dc78d4cb910609cd7e1cba66cdb5ba85d8080526fa627cced2ed219095f
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

18 lines
550 B
Plaintext

import { createOperation, isolateObjectProperty } from 'payload';
export function createResolver(collection) {
return async function resolver(_, args, context) {
if (args.locale) {
context.req.locale = args.locale;
}
const result = await createOperation({
collection,
data: args.data,
depth: 0,
draft: args.draft,
req: isolateObjectProperty(context.req, 'transactionID')
});
return result;
};
}
//# sourceMappingURL=create.js.map