[Vuejs]-NativeScript-Vue Firebase + FireStore use

0👍

Try this simple one:

mounted() {
    firestore.collection("Husqvarnas").get()
    .then(function(snapshot) {
        snapshot.forEach(function(doc) {
                console.log(doc.id, " => ", doc.data());
        });
    });
}

0👍

It was Security Rules, had to change in default rules from False, to True.

    rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

Leave a comment