我正在从RTD切换到Firestore,所以我对新的数据库非常陌生。我尝试使用FieldValue.arrayUnion将值添加到文档的字段(数组) orders中,但得到了The argument type 'int' can't be assigned to the// User collection .collection('Users')
.doc
我正在将文档添加到表单的firestore集合(inboxItems) onSubmit中。// I need a timestamp field here this.setState({ name: '' });} 如何将created字段设置为时间戳字段,并将当前时间戳作为值?我在firebase docs中看到提到了firebase.firestor
我正在尝试将一个快速字典连接到一个firestore映射字段中。正如我在之前的文章中看到的那样,我已经尝试了多种方法,比如FieldValue.arrayUnion,但它不起作用。//users is the collection and watched is the map field in firestore that I want to update with the dictionarystringB}
db.collection("users").document(self