imartinat
WWasp-lang
•Created by imartinat on 2/8/2023 in #đŸ™‹questions
Processing List to add in DB
Thank you very much for your work on WASP and for the great documentation.
I am having an issue, I am sending from the frontend 3 inputs at the same time to the backend. And from the action function I processed these 3 inputs and I created a list then I tried to loop through this list add to the database each item of this list using context.entities.ENTITY.create but it doesn't work. It seems that an action function can only process 1 entity to add to the database.
I also tried to use createMany with context entities but I have a TypeError in the console : `
Hope it makes sense.
Please let me know if want me to share some code.
15 replies