System Information
- Strapi Version: 3.6.8
- Operating System: windows 11
- Database: mysql
- Node Version: (node v16.14.2)
Hello, first of all, I’m new to strapi. I started using version 3 because I tested version 4 and the response was way complicated for my use case. (with data and attribut fields…) (also strapi 3 allows me to do mysql transactions while V4 don’t… V4 seems almost like a downgrade to me)
Anyway, i have been using Strapi for simple things and, its working fine, however, the difficulty arises when i want to do something more “complex”.
I have the following data structure:
model User has followers which are also users.
id: 1,
username: 'Filipe',
email: 'xxxxxx',
provider: 'local',
confirmed: true,
blocked: null,
followers: [
{
id: 2,
username: 'Peter',
email: 'test@test.com',
provider: 'local',
confirmed: true,
blocked: null,
}
],
The question is, what is the best way, using Strapi API, to easily add and remove followers from a certain user?
Do I have to make a PUT request for the whole User? Or can I update the relation table only?
Thank you.