ditto / live.ditto / DittoDocumentID / toString

toString

fun toString(): String

Returns a stringified representation of a document identifier.

The returned string can be used directly in queries that you use with other Ditto functions. For example you could create a query that was like this:

myCollection.find("_id == ${docID.toString()}")

Return
a stringified representation of the document identifier.