想象我有一个看起来像这样的数组
postedAt: 241242
categories:
- gaming: true
- history: true
- sports: true
是否可以创建看起来像这样的火焰存储索引......
类别。*降序:真实
或者我是否必须为类别中的每个可能值创建索引?
非常感谢你的帮助。
答案 0 :(得分:1)
let data: [String: Any] = [
"postedAt": 241242,
"categories": [
"gaming": true,
"history": true,
"sports": true,
]
]
Firestore.firestore().collection("users/data").addDocument(data)