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

Function traverseSelect

packages/db/src/query/live/utils.ts:181–194  ·  view source on GitHub ↗
(select: any)

Source from the content-addressed store, hash-verified

179 }
180
181 function traverseSelect(select: any) {
182 for (const [key, value] of Object.entries(select)) {
183 if (typeof key === `string` && key.startsWith(`__SPREAD_SENTINEL__`)) {
184 continue
185 }
186 if (value instanceof IncludesSubquery) {
187 traverse(value.query)
188 } else if (value instanceof ConditionalSelect) {
189 traverseConditionalSelect(value)
190 } else if (isNestedSelectObject(value)) {
191 traverseSelect(value)
192 }
193 }
194 }
195
196 function traverseConditionalSelect(conditional: ConditionalSelect) {
197 for (const branch of conditional.branches) {

Callers 2

traverseSelectValueFunction · 0.85
traverseFunction · 0.85

Calls 4

traverseFunction · 0.85
isNestedSelectObjectFunction · 0.70
entriesMethod · 0.45

Tested by

no test coverage detected