我正在使用以下代码使用 Dart/Flutter 更新 Cloud Firestore 集合。
final _url = FirebaseFirestore.instance
.collection('builders')
.doc('builder id')
.collection('projects')
.doc();
await _url.set({'docId': _url.documentID});
这以前可以使用,但现在显示错误消息:
getter 'documentId' 没有为类型 'DocumentReference' 定义。
有人可以帮我吗
“documentId”现在是“id”
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句