()
| 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 = { |
no test coverage detected
searching dependent graphs…