how to creat multiple db entries with only one trpc mutation
cannot use createMany as I'm using sqlite
7 Replies
Create, but with a loop I guess?
But also maybe consider using a different database
it just creates the entry for first item rest trpc mutation give some error
I'm first completing the application the I'll switch the db to railway bc my hours will be depleted
Do it in the backend
i have an array of data i have to send to backend
the array comes from user
Yes send the array to the backend and loop over the array in the backend
im doing this