readWithPayload
abstract suspend fun readWithPayload(documentId: String): DocumentWithPayload<Document, Payload>?(source)
Reads a document along with its associated payload based on the given document ID.
Return
A pair containing the document and its associated payload if found, or null if no document is associated with the given ID.
Parameters
documentId
The unique identifier of the document to be read.