get

operator fun get(key: String): DittoDocumentIDPath

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

Parameters

key

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


operator fun get(index: Int): DittoDocumentIDPath

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 ID.

Parameters

index

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