Hello! I have a documents field in my user model, wich is a repeatable components with some fields (string, number, and file).
When i want to add a document to this user, i have to fetch this user to get all his documents, map them to give to Strapi the expected format, and then update him with a new array of all mapped documents and the new one.
The documentation probably doesn’t explain the limitation very well. Maybe a bit of an update would avoid common question.
I am putting together an endpoint that is a POST /hubs/:id with events (my repeatable component) in the body to then append it server side. Looking on best way to achieve this - raw SQL maybe the answer.
This will be much easier in the v4 as there will actually be functions on the entity service and we are adding an “actions” system so you can create your own custom actions.
@DMehaffy Can you please share some details on the v4 implementation of adding an entry to the repeatable component instead of replacing all? I especially curious if there is some way to do it though api
More or less the same as in v3, you need all the existing ones (with their IDs) and you add another compo object with no id field and it will create a new one.