Hello, This one is very tricky. I’ve got a text I get from an API, so I realized that for better filtering of the text I receive I need to split the text using regex (/\n/). I need to create a multi insert in my server action that takes the value “text” splits it and the insert each value to my database.
I’ve got this:
Of course, didn’t work because the value I set (SplitText) is an array without any text inside it, I need to insert the new split text into my database.