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

Function isNestedSelectObject

packages/db/src/query/live/utils.ts:239–246  ·  view source on GitHub ↗

* Check if a value is a nested select object (plain object, not an expression)

(obj: any)

Source from the content-addressed store, hash-verified

237 * Check if a value is a nested select object (plain object, not an expression)
238 */
239function isNestedSelectObject(obj: any): boolean {
240 if (obj === null || typeof obj !== `object`) return false
241 if (obj instanceof IncludesSubquery) return false
242 if (isExpressionLike(obj)) return false
243 // Ref proxies from spread operations
244 if (obj.__refProxy) return false
245 return true
246}
247
248/**
249 * Builds a query IR from a config object that contains either a query builder

Callers 5

extractFromSelectFunction · 0.70
extractFromSelectValueFunction · 0.70
traverseSelectFunction · 0.70
traverseSelectValueFunction · 0.70
buildQueryFromConfigFunction · 0.70

Calls 1

isExpressionLikeFunction · 0.85

Tested by

no test coverage detected