replaceToMany method
Implementation
Future<RelationshipUpdated<ToMany>> replaceToMany(
String type,
String id,
String relationship,
Iterable<Identifier> identifiers, {
Map<String, Object?> meta = const {},
Map<String, String> headers = const {},
}) async {
final response = await send(
baseUri.relationship(type, id, relationship),
Request.patch(
OutboundDataDocument.many(ToMany(identifiers)..meta.addAll(meta)))
..headers.addAll(headers));
return RelationshipUpdated.many(response.http, response.document);
}