System Information
- 3.3.3:
- windows:
- mongoDB:
- 12.18.3:
- 6.14.6:
hi i have a data type called special events and i have a repeatable component name suggestions in it which each one of the components includes a user (relation) and a hasWon boolean . i want to be able to add new suggestions to my special event . what i did was something like this
`
const event = await strapi.query(‘special-event’).findOne({ _id: data.eventid })
let updatedSugesstions = [
...event.suggestions,
{
hasWon: false,
user: user,
}
];
await strapi.query('special-event').update({ _id: data.eventid }, {
suggestions: updatedSugesstions
})