deleteToOne method
Removes the to-one relationship
identified by type
, id
, and relationship
..
Optional arguments:
headers
- any extra HTTP headersquery
- a collection of parameters to be included in the URI query
Implementation
Future<RelationshipUpdated<ToOne>> deleteToOne(
String type,
String id,
String relationship, {
Map<String, List<String>> headers = const {},
Iterable<QueryEncodable> query = const [],
}) async =>
RelationshipUpdated.one(await send(
_baseUri.relationship(type, id, relationship),
Request.patch(OutboundDataDocument.one(ToOne.empty()))
..headers.addAll(headers)
..query.mergeAll(query)));