how to creat multiple db entries with only one trpc mutation

cannot use createMany as I'm using sqlite
7 Replies
cje
cje2y ago
Create, but with a loop I guess? But also maybe consider using a different database
aditya
aditya2y ago
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
cje
cje2y ago
Do it in the backend
aditya
aditya2y ago
i have an array of data i have to send to backend the array comes from user
cje
cje2y ago
Yes send the array to the backend and loop over the array in the backend
aditya
aditya2y ago
aditya
aditya2y ago
im doing this
Want results from more Discord servers?
Add your server