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

Function buildIncludesQuery

packages/db/tests/query/includes.test.ts:155–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 })
154
155 function buildIncludesQuery() {
156 return createLiveQueryCollection((q) =>
157 q.from({ p: projects }).select(({ p }) => ({
158 id: p.id,
159 name: p.name,
160 issues: q
161 .from({ i: issues })
162 .where(({ i }) => eq(i.projectId, p.id))
163 .select(({ i }) => ({
164 id: i.id,
165 title: i.title,
166 })),
167 })),
168 )
169 }
170
171 describe(`scalar includes materialization`, () => {
172 type Message = {

Callers 1

includes.test.tsFile · 0.85

Calls 5

selectMethod · 0.80
fromMethod · 0.80
whereMethod · 0.80
eqFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…