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

Function get

packages/db/src/query/builder/ref-proxy.ts:61–69  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

59
60 const proxy = new Proxy({} as any, {
61 get(target, prop, receiver) {
62 if (prop === `__refProxy`) return true
63 if (prop === `__path`) return path
64 if (prop === `__type`) return undefined // Type is only for TypeScript inference
65 if (typeof prop === `symbol`) return Reflect.get(target, prop, receiver)
66
67 const newPath = [...path, String(prop)]
68 return createProxy(newPath)
69 },
70
71 has(target, prop) {
72 if (prop === `__refProxy` || prop === `__path` || prop === `__type`)

Callers

nothing calls this directly

Calls 3

createProxyFunction · 0.85
createSelectedProxyFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected