raw method
Merges an arbitrary Json map into the document with id.
Implementation
Future<void> raw(String id, Json map) async {
final dataToWrite = cleanDataForWrite(map);
try {
await collection.doc(id).set(dataToWrite, SetOptions(merge: true));
} on FirebaseException catch (e) {
_log.severe(
'Failed to merge raw data into $collectionName/$id: ${e.message}',
);
rethrow;
} on Exception catch (e) {
_log.severe(
'Uncaught error merging raw data into $collectionName/$id: $e',
);
rethrow;
}
}