mDelete method

Future<Map<String, dynamic>> mDelete(
  1. String index,
  2. String collection,
  3. List<String> ids, {
  4. bool waitForRefresh = false,
})

Deletes multiple documents.

Implementation

Future<Map<String, dynamic>> mDelete(
  String index,
  String collection,
  List<String> ids, {
  bool waitForRefresh = false,
}) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'mDelete',
    index: index,
    collection: collection,
    body: <String, dynamic>{'ids': ids},
    waitForRefresh: waitForRefresh,
  ));

  return response.result as Map<String, dynamic>;
}