0👍
It looks like you are passing array as a value to items
key. If you use dbMenuRef.add, you might want to add as sub-collections. Instead, you can use .set
if you want to have the entire document added (please refer the documentation here. Can you try:
addOrder() {
dbMenuRef
.doc(this.orderID)
.set(this.newOrder)
}
- [Vuejs]-Empty site after using nmp run build (vue 2 cli)
- [Vuejs]-Call a component method from main vue app
Source:stackexchange.com