MCPcopy Create free account
hub / github.com/effect-app/libs / query

Function query

packages/effect-app/src/Model/Repository/internal/internal.ts:572–575  ·  view source on GitHub ↗
(q: any)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…