我该怎么做呢?我为user集合中的每个用户创建了一个数据结构,并为存储在集合中的user对象创建了自己的模式。下面是我想要做的一个例子: const {user} = await auth.createUserWithEmailAndPassword(email, password) // initialise the schema for the data
我正在将文档添加到表单的firestore集合(inboxItems) onSubmit中。', // I need a timestamp field here this.setState({ name: '' });} 如何将created字段设置为时间戳字段,并将当前时间戳作为值?我在firebase docs中看到提到了