getDocument

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

Deprecated

Use defaultCollection.getDocument()

Replace with

defaultCollection.getDocument(id)

Gets an existing Document with the given ID from the default collection. If the document with the given ID doesn't exist in the default collection, the method will return null. If the database is closed the method will throw an IllegalStateException.

Return

the Document object or null

Parameters

id

the document ID

Throws

when the database is closed

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

Deprecated

Use defaultCollection.getDocument()

Replace with

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

Deprecated

Use defaultCollection.getDocument()

Replace with

defaultCollection.getDocument(id)