Skip to content

Instantly share code, notes, and snippets.

@thihenos
Created December 27, 2018 01:54
Show Gist options
  • Save thihenos/3c690f0f80b5f97c226bc74fa840e1d7 to your computer and use it in GitHub Desktop.
Save thihenos/3c690f0f80b5f97c226bc74fa840e1d7 to your computer and use it in GitHub Desktop.
File example for medium article
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