Ditto Mutable Document Path
Provides an interface to specify a path to a key in a document that you can then call various update functions on. You obtain a DittoMutableDocumentPath by subscripting a DittoMutableDocument and you can then further subscript a DittoMutableDocumentPath to further specify the key of the document that you want to update.
Properties
Returns the value at the previously specified key in the document as a DittoAttachmentToken
. If the key was invalid the return value will be null.
Returns the value at the previously specified key in the document as a Boolean
. If the key was invalid the return value will be false.
Returns the value at the previously specified key in the document as a DittoMutableCounter if possible, otherwise the return value will be null
.
Returns the value at the previously specified key in the document as a Double
. If the key was invalid the return value will be 0.0.
Returns the value at the previously specified key in the document as a Float
. If the key was invalid the return value will be 0f.
Returns the value at the previously specified key in the document as a DittoMutableRegister if possible, otherwise the return value will be null
.
Returns the value at the previously specified key in the document as a String
. If the key was invalid the return value will be an empty string.
Functions
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 and eventually perform an update operation.
Used to specify a path to a key in the document that you can subscript further to access a nested key in the document and eventually perform an update operation on.
Set a value at the document's key defined by the preceding subscripting.