Returns the document ID as value.
Returns the document path at the root of the document.
Convenience property, same as calling path.value
. The value is cached on
first access and returned on subsequent calls without calling path.value
again.
Convenience method, same as calling path.at()
.
Returns a byte representation of the document ID value as base64 string.
Returns a string representation of the passed in document ID value.
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:
collection.find(`_id == ${Document.stringForID(documentID)}`)
A document belonging to a Collection with an inner value.