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

Function getValues

packages/infra/src/Store/Cosmos/query.ts:290–296  ·  view source on GitHub ↗
(filter: readonly FilterResult[])

Source from the content-addressed store, hash-verified

288 // )
289 // .join(mode === "OR" ? " OR " : " AND ") + ")"
290 const getValues = (filter: readonly FilterResult[]): FilterR[] =>
291 filter
292 .flatMap((_) =>
293 _.t === "and-scope" || _.t === "or-scope" || _.t === "where-scope"
294 ? getValues(_.result)
295 : [_]
296 )
297 const computedFilters = select
298 ? select.flatMap((_) =>
299 typeof _ === "object" && "computed" in _ && "filter" in _.computed ? getValues(_.computed.filter) : []

Callers 1

buildWhereCosmosQuery3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…