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
2 lines
441 B
Plaintext
2 lines
441 B
Plaintext
const e=require(`../../utils/is-system-collection.cjs`),t=require(`../../utils/throw-if-empty.cjs`);require(`../../../index.cjs`);const n=(n,r)=>()=>{let i=String(n);return t.throwIfEmpty(i,`Collection cannot be empty`),{path:e.isSystemCollection(i)?`/${i.substring(9)}`:`/items/${i}`,method:`GET`,params:{...r.query??{},...r.groupBy?{groupBy:r.groupBy}:{},aggregate:r.aggregate}}};exports.aggregate=n;
|
|
//# sourceMappingURL=aggregate.cjs.map |