getResponsibleShard method

Future<String> getResponsibleShard(
  1. Map<String, dynamic> document
)

Implementation

Future<String> getResponsibleShard(Map<String, dynamic> document) async {
  final resp = await _connection.request(
    method: 'PUT',
    path: '/_api/collection/$name/responsibleShard',
    body: document,
  );
  return resp.body['shardId'];
}