我有以下方法,可以很好地工作,但我不知道如何从文档中实际检索特定字段。我似乎只能引用返回整个document对象的document.data()。我正在尝试引用一个名为"content“的特定字段,它在我的Firestore中是一个字符串类型。let db = Firestore.firestore()
db.collection("messages").whereField("channel&q
我尝试使用updateData(fields: AnyHashable : Any)函数来更新文档中的数组。ExpressibleByStringLiteral'
CompileDylibError: Failed to build Data.swiftdesignTimeString(_:fallback:)' requires that 'AnyHashable' conform to 'Express