How to update repeatable components item's relations?

System Information
  • Strapi Version: 4.15.0
  • Operating System: linux
  • Database: pgsql
  • Node Version: 18
  • NPM Version:
  • Yarn Version:

my code:

let new_card_id = 1
let column_id = 1
const updateKanban = await strapi.entityService.update('api::kanban.kanban',kanban_id,{
    data: {
        column: [
                id: column_id,
                cards: {
                    connect: [],

when I test this code,new card connect success, but all columns in ‘Kanban’ was deleted without id is column_id,
I want connect a new card to kanban → column → cards;
how to change my code?

For components every time you do an update you need to give all components every component it does not get it will auto delete

so, I can’t update a component by id,
I need update all component items every time when I need update one of them?


Yes if you want to be able to update one at a time you would have to make it content-types