【发布时间】:2020-02-07 01:00:27
【问题描述】:
我正在尝试在 Firestore 集合中一次创建多个文档以进行配置。我可以从 Postman 发送一份一份地创建文档:
{
"fields": {
"category":{"stringValue": "Configs"},
"order":{"integerValue":"3"}
}
}
我想知道是否有某种方法可以创建多个发送这样的文件:
{
"batch": [
{
"fields": {
"categoria": {
"stringValue": "Configurações"
},
"ordem": {
"integerValue": "3"
}
}
},
{
"fields": {
"categoria": {
"stringValue": "Configurações"
},
"ordem": {
"integerValue": "3"
}
}
}
]
}
谁能说这可能吗?如果是这样,我该怎么做?
【问题讨论】:
-
你做对了吗?
标签: json rest api google-cloud-firestore postman