ditto-lib / live.ditto / DittoDocumentPath / <init>

<init>

DittoDocumentPath(value: Map<String, Any>, docID: String, initialPath: String)

Provides an interface to specify a path to a key in a document that you can then call a function on to get the value at the specified key as a specific type. You obtain a DittoDocumentPath by subscripting a DittoDocument and you can then further subscript a DittoDocumentPath to further specify the key of the document that you want to get the value of.