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