Insert multiple rows + onConflictDoUpdate
Is it possible to insert multiple rows (array) and at the same time using the onConflictDoUpdate?
I'm trying it out but I get this error:
I'm trying it out but I get this error:
TypeError: Cannot read properties of undefined (reading 'name')
at ghh5w224esf.js:70758:77
at Array.flatMap (<anonymous>)
at SQLiteAsyncDialect.buildUpdateSet (ghh5w224esf.js:70757:36)
at SQLiteInsert.onConflictDoUpdate (ghh5w224esf.js:70637:186)
at D1_DB.pushCourse (ghh5w224esf.js:79896:65)
at OrgCourseService.insertCoursesFromNtnIntoD1 (ghh5w224esf.js:79874:36)
at async action2 (ghh5w224esf.js:58503:35)
at async callRouteActionRR (ghh5w224esf.js:3315:16)
at async callLoaderOrAction (ghh5w224esf.js:2436:16)
at async submit2 (ghh5w224esf.js:2080:25) {
stack: TypeError: Cannot read properties of undefined (re…16)
at async submit2 (ghh5w224esf.js:2080:25),
message: Cannot read properties of undefined (reading 'name')
}TypeError: Cannot read properties of undefined (reading 'name')
at ghh5w224esf.js:70758:77
at Array.flatMap (<anonymous>)
at SQLiteAsyncDialect.buildUpdateSet (ghh5w224esf.js:70757:36)
at SQLiteInsert.onConflictDoUpdate (ghh5w224esf.js:70637:186)
at D1_DB.pushCourse (ghh5w224esf.js:79896:65)
at OrgCourseService.insertCoursesFromNtnIntoD1 (ghh5w224esf.js:79874:36)
at async action2 (ghh5w224esf.js:58503:35)
at async callRouteActionRR (ghh5w224esf.js:3315:16)
at async callLoaderOrAction (ghh5w224esf.js:2436:16)
at async submit2 (ghh5w224esf.js:2080:25) {
stack: TypeError: Cannot read properties of undefined (re…16)
at async submit2 (ghh5w224esf.js:2080:25),
message: Cannot read properties of undefined (reading 'name')
}