Posting array to database only creates one row
In my app I build a array of answers to a quiz. At the end of the quiz when the user submits the answers I would like to post the answers to a database collection, each answer which is one item in the array should occupy one row in the collection.
The array of answers is in session storage. I have created a created service to allow creating new rows in the collection. In the before send mapping I have mapped the items from the array in local storage to the request body.
The problem I am having is that only the first item in the array is being posted to a row in the collection. I have the iterator mapped so I am not sure what the problem is. Here is a screenshot of the mappings:
I assume there is no problem with the data types since one row is being created successfully but I do not understand why the iterator is not working?