Я могу:
firestore
.collection("messages")
.doc(`${channel.currentChannel.id}`)
.set(newMessage);
, но я не могу
firestore
.collection("messages")
.doc(`${channel.currentChannel.id}`)
.add(newMessage);
Я получаю ошибку: .add is not a function
Почему это так?Нужно ли использовать другой подход для приложения chat
?