#community-help

Creating Multiple Collections in a Single POST Request

TLDR Austin asked if multiple collections can be created in a single POST request. Jason clarified multiple collections cannot be inserted in one request. Austin found a workaround using a bash for loop.

Powered by Struct AI
5
9mo
Solved
Join the chat
Feb 26, 2023 (9 months ago)
Austin
Photo of md5-e9be9b39e513a981e36525a17c4563c3
Austin
12:38 AM
Is there a way to enter multiple Collections in a single POST request? A list of Collections in a single JSON?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:39 AM
Do you mean search multiple collections, or insert documents into multiple collections in a single request?
12:39
Jason
12:39 AM
The former is possible, the latter is not possible
Austin
Photo of md5-e9be9b39e513a981e36525a17c4563c3
Austin
12:42 AM
I want to create all collections mirroring my firestore collections in a single POST request
12:48
Austin
12:48 AM
I have found a way to use bash to send individual requests in a for loop instead