"onConflictDoUpdate" fails with error in Array.flatMap
I am trying to run an upsert function, and update the values if it already exists. Now I might be completely in the wrong with the code.
I have made a base "repository" class that has the upsert function simplified as follows:
now I have tried the upsert in a loop for the array is the data happens to be an array, did not do anything, getting the same error.
I have made a base "repository" class that has the upsert function simplified as follows:
now I have tried the upsert in a loop for the array is the data happens to be an array, did not do anything, getting the same error.