Document API
Get documents
Getting documents from a collection by their respective IDs can be done via the get()
function on a client.collection(name)
object:
The result is a key-value mapping: each key is a document ID, and each value is the document in the same shape it was upserted:
If a document with a given ID does not exist in the collection, it is simply omitted from the results; no error is thrown.