deleteByIds method

Future deleteByIds(
  1. String? correlationId,
  2. List<K> ids
)

Deletes multiple data items by their unique ids.

  • correlationId (optional) transaction id to trace execution through call chain.
  • ids ids of data items to be deleted. Return Future that receives null for success. Throws error

Implementation

Future deleteByIds(String? correlationId, List<K> ids) async {
  var filter = {
    '_id': {r'$in': ids}
  };
  return deleteByFilterEx(correlationId, filter);
}