getDocument

expect fun getDocument(id: String): Document?(source)

Gets an existing Document object with the given ID. If the document with the given ID doesn't exist in the collection, the value returned will be null.

Return

the Document object or null

Parameters

id

the document id

Throws

if the database is closed, the collection has been deleted, etc.

actual fun getDocument(id: String): Document?(source)
actual fun getDocument(id: String): Document?(source)