(q: any)
| 570 | // Mode dispatch — see `Q.project` JSDoc for the contract: |
| 571 | // aggregate: GROUP BY + aggregate functions at DB level; decode raw rows with schema; SchemaError surfaces. |
| 572 | // project : decode raw encoded rows with schema; no PM reverse-mapping; SchemaError surfaces. |
| 573 | // collect : same as project, but schema yields Option and None rows are dropped. |
| 574 | // transform: PM reverse-map (re-inject _etag/PM state from cms cache) then decode; orDie. |
| 575 | const eff = a.mode === "aggregate" |
| 576 | ? store |
| 577 | // `a.select` contains `{ key, aggregate }` items not expressible in FilterFunc<Encoded, U>'s |
| 578 | // `U extends keyof Encoded` generic. Cast is unavoidable until FilterFunc supports aggregate mode. |
nothing calls this directly
no test coverage detected
searching dependent graphs…