Created
December 27, 2018 01:54
-
-
Save thihenos/3c690f0f80b5f97c226bc74fa840e1d7 to your computer and use it in GitHub Desktop.
File example for medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firebase.initializeApp({ | |
apiKey: "YOUR apiKey", | |
authDomain: "YOUR authDomain", | |
projectId: "YOUR projectId", | |
}); | |
let firestore = firebase.firestore(); | |
let collection = firestore.collection('Teste'); | |
collection.get().then(result => { | |
console.log(result.size) | |
}).catch((err) => { | |
console.log('Erro !'+err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment