Closed lroal closed 5 months ago
4.1.1
None
No response
TypeError: Cannot read properties of undefined (reading '_primaryColumns') ❯ primaryKeyFilter ../src/table/newPrimaryKeyFilter.js:2:29 ❯ createCompositeFilter ../src/getManyDto.js:220:36 ❯ createOneFilter ../src/getManyDto.js:217:10
const map = orange.map(x => ({ compositeOrder: x.table('compositeOrder').map(({ column }) => ({ companyId: column('companyId').string().primary().notNullExceptInsert(), orderNo: column('orderNo').numeric().primary().notNullExceptInsert(), })), compositeOrderLine: x.table('compositeOrderLine').map(({ column }) => ({ companyId: column('companyId').string().primary().notNullExceptInsert(), orderNo: column('orderNo').numeric().primary().notNullExceptInsert(), lineNo: column('lineNo').numeric().primary().notNullExceptInsert(), product: column('product').string(), })) })).map(x => ({ compositeOrder: x.compositeOrder.map(({ hasMany }) => ({ lines: hasMany(x.compositeOrderLine).by('companyId', 'orderNo') })) })); export default map;
orange Version
4.1.1
Database
None
Database Version
No response
Operating System
No response
Description
TypeError: Cannot read properties of undefined (reading '_primaryColumns') ❯ primaryKeyFilter ../src/table/newPrimaryKeyFilter.js:2:29 ❯ createCompositeFilter ../src/getManyDto.js:220:36 ❯ createOneFilter ../src/getManyDto.js:217:10
Expected Behavior
No response