addMany method
Adds the identifiers
to the to-many relationship
identified by type
, id
, relationship
.
Optional arguments:
headers
- any extra HTTP headers
Implementation
Future<RelationshipUpdated<ToMany>> addMany(
String type,
String id,
String relationship,
List<Identifier> identifiers, {
Map<String, Object?> meta = const {},
Map<String, List<String>> headers = const {},
}) async =>
RelationshipUpdated.many(await send(
_baseUri.relationship(type, id, relationship),
Request.post(
OutboundDataDocument.many(ToMany(identifiers)..meta.addAll(meta)))
..headers.addAll(headers)));