@@ -59,6 +59,7 @@ class RoutingClient {
59
59
Map <String , Object ?> meta = const {},
60
60
Map <String , Object ?> documentMeta = const {},
61
61
Map <String , String > headers = const {},
62
+ Iterable <String > include = const [],
62
63
}) async {
63
64
final response = await send (
64
65
baseUri.collection (type),
@@ -70,7 +71,8 @@ class RoutingClient {
70
71
})
71
72
..meta.addAll (meta))
72
73
..meta.addAll (documentMeta))
73
- ..headers.addAll (headers));
74
+ ..headers.addAll (headers)
75
+ ..include (include));
74
76
75
77
return ResourceCreated (
76
78
response.http, response.document ?? (throw FormatException ()));
@@ -254,6 +256,7 @@ class RoutingClient {
254
256
Map <String , Object ?> meta = const {},
255
257
Map <String , Object ?> documentMeta = const {},
256
258
Map <String , String > headers = const {},
259
+ Iterable <String > include = const [],
257
260
}) async {
258
261
final response = await send (
259
262
baseUri.resource (type, id),
@@ -265,7 +268,8 @@ class RoutingClient {
265
268
})
266
269
..meta.addAll (meta))
267
270
..meta.addAll (documentMeta))
268
- ..headers.addAll (headers));
271
+ ..headers.addAll (headers)
272
+ ..include (include));
269
273
return ResourceUpdated (response.http, response.document);
270
274
}
271
275
@@ -279,6 +283,7 @@ class RoutingClient {
279
283
Map <String , Object ?> meta = const {},
280
284
Map <String , Object ?> documentMeta = const {},
281
285
Map <String , String > headers = const {},
286
+ Iterable <String > include = const [],
282
287
}) async {
283
288
final response = await send (
284
289
baseUri.collection (type),
@@ -290,7 +295,8 @@ class RoutingClient {
290
295
})
291
296
..meta.addAll (meta))
292
297
..meta.addAll (documentMeta))
293
- ..headers.addAll (headers));
298
+ ..headers.addAll (headers)
299
+ ..include (include));
294
300
return ResourceUpdated (response.http, response.document);
295
301
}
296
302
0 commit comments