New entries on repeatable components using apollo

Hi! i am using graphql with apollo client with react.

The problem is that i have my users and each user has a repeatable component of locations

But as a repeatable component i cannot just add a new entry because it will delete the previous one… after some playing with the “playground” of graphql, I manage to add more entries but “manually” by putting the “id´s” of the previuos data. But i just cant figure how to use that mutation into React

any suggestions?

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

In case someone needs this…

you need to use [editComponent"thecomponent"] as in the picture , to pass an array of objects containing the updated information