DittoMutableDocumentPath
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 DittoMutbaleDocumentPath to further specify the key of the document that you
want to update.
-
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.
-
Remove a value at the document’s key defined by the preceding subscripting. If removing an index from an array, any subsequent indexes will be shifted left to fill the gap.
-
Returns the value at the previously specified key in the document as an
Any?. It will benilif no value exists. -
Returns the value at the previously specified key in the document as a
Stringif possible, otherwise the return value will benil. -
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. -
Returns the value at the previously specified key in the document as a
Boolif possible, otherwise the return value will benil. -
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. -
Returns the value at the previously specified key in the document as an
Intif possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as an
Int. If the key was invalid the return value will be 0. -
Returns the value at the previously specified key in the document as a
UIntif possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as a
UInt. If the key was invalid the return value will be 0. -
Returns the value at the previously specified key in the document as a
Floatif possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as a
Float. If the key was invalid the return value will be 0. -
Returns the value at the previously specified key in the document as a
Doubleif possible, otherwise the return value will benil. -
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. -
Returns the value at the previously specified key in the document as an
Array<Any?>if possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as an
Array<Any?>. If the key was invalid the return value will be an empty array. -
Returns the value at the previously specified key in the document as a
Dictionary<String, Any?>if possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as a
Dictionary<String, Any?>. If the key was invalid the return value will be an empty dictionary. -
Returns the value at the previously specified key in the document as a
DittoAttachmentTokenif possible, otherwise the return value will benil. -
Returns the value at the previously specified key in the document as a
DittoMutableCounterif possible, otherwise returnsnil. -
Returns the value at the previously specified key in the document as a
DittoMutableRegisterif possible, otherwise the return value will benil.
DittoMutableDocumentPath Class Reference