Skip to content

Commit ee44053

Browse files
committed
test(sql-orm-client): declare junction namespaceId in the shared M:N contract helper
resolveThrough now requires the contract through block to carry the junction's namespaceId; without it the relation resolves as non-M:N and the filter EXISTS tests assert the wrong shape. Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>
1 parent 7541a7d commit ee44053

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/3-extensions/sql-orm-client/test

packages/3-extensions/sql-orm-client/test/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ export function buildManyToManyContract(opts: {
375375
on: { localFields, targetFields: targetColumns },
376376
through: {
377377
table: junctionTable,
378+
namespaceId: 'public',
378379
parentColumns,
379380
childColumns,
380381
targetColumns,

0 commit comments

Comments
 (0)