MCPcopy Index your code
hub / github.com/TanStack/db / isNestedSelectObject

Function isNestedSelectObject

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

Check if a value is a nested plain object in a select (not an IR expression node)

(value: any)

Source from the content-addressed store, hash-verified

1891
1892/** Check if a value is a nested plain object in a select (not an IR expression node) */
1893function isNestedSelectObject(value: any): value is Record<string, any> {
1894 return (
1895 value != null &&
1896 typeof value === `object` &&
1897 !Array.isArray(value) &&
1898 !isExpressionLike(value)
1899 )
1900}
1901
1902function assertNoNestedIncludes(
1903 obj: Record<string, any>,

Callers 5

visitSelectValueFunction · 0.70
assertNoNestedIncludesFunction · 0.70

Calls 1

isExpressionLikeFunction · 0.85

Tested by

no test coverage detected