mirror of
https://github.com/strapi/strapi.git
synced 2025-08-30 03:33:37 +00:00
Update docs/docs/core/content-manager/relations.mdx
This commit is contained in:
parent
8530a4aa6a
commit
e8fa36a380
@ -126,7 +126,7 @@ data for the api.
|
||||
|
||||
### Cleaning data to be posted to the API
|
||||
|
||||
The API to update the entiy expects relations to be categorised into two groups, a `connect` array and `disconnect` array.
|
||||
The API to update the entity expects relations to be categorised into two groups, a `connect` array and `disconnect` array.
|
||||
You could do this as the user interacts with the input but we found this to be confusing and then involved us managing three
|
||||
different arrays which makes the code more complex. Instead, because the browser doesn't really care about whats new and removed
|
||||
and we have a copy of the slice of data we're mutating from the server we can run a small diff algorithm to determine which
|
||||
|
Loading…
x
Reference in New Issue
Block a user