MCPcopy Create free account
hub / github.com/electric-sql/electric / toArray

Function toArray

packages/agents-runtime/src/setup-context.ts:293–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291 return collection?.get(key) as Record<string, unknown> | undefined
292 },
293 get toArray() {
294 return (collection?.toArray ?? []) as Array<Record<string, unknown>>
295 },
296 }
297
298 stateProxy[name] = proxy

Callers 2

buildEntityTimelineQueryFunction · 0.70

Calls 5

getLocalCollectionFunction · 0.85
filterMethod · 0.80
stripVirtualFieldsFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected