how to creat multiple db entries with only one trpc mutation

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