This function gets a document from the database by its ID.
const doc = await getDoc(collection, "10")const id = doc.idconst content = doc.doc Copy
const doc = await getDoc(collection, "10")const id = doc.idconst content = doc.doc
the instance of collection
the id of document
the DocumentEntry if the document was found. Otherwise, raises an error.
Generated using TypeDoc
This function gets a document from the database by its ID.