MCPcopy Create free account
hub / github.com/TanStack/db / replaceIncludesInSelect

Function replaceIncludesInSelect

packages/db/src/query/compiler/index.ts:1924–1929  ·  view source on GitHub ↗

* Replaces an IncludesSubquery entry in the select object with a null Value placeholder. * This ensures processSelect() doesn't encounter it.

(
  select: Record<string, any>,
  path: Array<string>,
)

Source from the content-addressed store, hash-verified

1922 * This ensures processSelect() doesn't encounter it.
1923 */
1924function replaceIncludesInSelect(
1925 select: Record<string, any>,
1926 path: Array<string>,
1927): Record<string, any> {
1928 return replaceIncludesInSelectValue(select, path, new ValClass(null)).value
1929}
1930
1931function replaceIncludesInSelectValue(
1932 value: any,

Callers 1

compileQueryFunction · 0.85

Calls 1

Tested by

no test coverage detected