Ability to replace the list of connections between 2 collections that have a many-to-many relationship.
Assuming a schema:
Client {
services: [Service] @relation(name: "ClientServices")
}
Service {
clients: [Client] @relation(name: "ClientServices")
}
## The feature is the "replace" instead of 2 calls: disconnect and connect, like this:
mutation {
updateClient(id: ..., data : {
services: {
replace: ["123", "789"] ## replaces all connections with just these 2
}
}) { ... }
}
See this question for use case example: