tremp
tremp

Reputation: 361

Cloud Firestore REST API. How to create several documents in one request?

I need to rest api upload a lot of documents to Cloud Firestore. I figured out how to load one document. But it takes a lot of time. I want to send several documents by one request. I just can’t do how it can be done ....

Upvotes: 1

Views: 384

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317372

It doesn't appear to be possible. Consider instead beginning a transaction, then committing multiple documents in that transaction. You're looking at two requests in that case.

Upvotes: 1

Related Questions