Type Alias DataStorageOperation

A union of all possible DataStorages. An operation manipulates or alters the value of a key in the data storage. If the operation transforms the value from one state to another then the current value of the key is used as the starting point otherwise the SetPacket's default is used if the key does not exist on the server already.

Each operation object consists of an object containing both the operation to be applied, provided in the form of a string, and the value to be used for that operation,

See each DataStorage subtype for more details.

{ "operation": "add", "value": 12 }