Firebase - studiofu/brain GitHub Wiki

Firebase

Query Reference Object

to get the current place in the database

firestore.doc('/xxx/yyyyy/keyvalue');
firestore.collections('/collections');

Snapshots Object

to get the data, firebase returns the snapshot object even the object not exists

const ref = firestore.doc('/xxx/yyyy');
const snapShot = await ref.get();
if(snapShot.exists) { }