I have a JSON file that looks like this:
const data = [
{
name: 'Dry Ice',
total: 84,
price: 346,
},
{
name: 'Chef Hat 20cm',
total: 156,
price: 231,
},
// and more data
]
I want to add all objects in a firestore collection as documents.
I have found batch operation documentation. They show how to update the existing documents. But I want to create new documents in one request from the client side.