toString

open override 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.