manyWithIDs method

Future<void> manyWithIDs(
  1. Type type,
  2. List<String> documentIDs, {
  3. String? subcollection,
})

Deletes multiple documents from the RDB by their type and a list of document IDs.

Implementation

Future<void> manyWithIDs(Type type, List<String> documentIDs, { String? subcollection }) async {
  if (documentIDs.isEmpty) return;
  if (documentIDs.length > 500) {
    throw ArgumentError('Batch limit exceeded. Maximum 500 document IDs allowed.');
  }
  RDBWriteBatch batch = RDBWriteBatch();
  return batch.deleteWithIDs(type, documentIDs, subcollection: subcollection);
}