Get Document with Snapshot

getDocWithSnapshotFirebase

  • Description: Mendapatkan dokumen dengan snapshot dari koleksi Firestore.

  • Parameters:

    • collectionName: Nama koleksi Firestore.

    • docName: Nama dokumen yang ingin diperoleh snapshot-nya.

  • Example Call:

try {
  const docData = await getDocWithSnapshotFirebase('CollectionName', 'DocName');
  console.log(docData);
} catch (error) {
  console.log('Error:', error);
}

Last updated