ditto / live.ditto / DittoDocumentPath / get

get

operator fun get(key: String): DittoDocumentPath

Used to specify a path to a key in the document that you can subscript further to access a nested key in the document.

Parameters

key - the next part of the path needed to get to the key in the document you wish to get the value of.

operator fun get(index: Int): DittoDocumentPath

Used to specify an index in the array at the preceding key-path specified through the subscripting defined previously. You can subscript the return value further to access a further nested key in the document.

Parameters

index - the index of the array that you wish to access in the key previously specified with the preceding subscripting.