Adds multiple documents to the specified collection in Firestore.
This function supports batched writes, and if the number of items exceeds the maximum batch size (500),
it will split the items into multiple batches and write them sequentially.
Throws
Throws an exception with an error message if an error occurs.
Adds multiple documents to the specified collection in Firestore. This function supports batched writes, and if the number of items exceeds the maximum batch size (500), it will split the items into multiple batches and write them sequentially.
Throws
Throws an exception with an error message if an error occurs.
Example