Skip to main content

Setting simple types

Simple types work everywhere with no special handling required ('simple' in this context is a type which works 'as is' everywhere). They work equally well as the KV value or value within an object, Map, Array, etc. Examples shown are what you would type for the value in KV Client when setting or updating a value.

TypeExample as KV valueExample setting value within a data structure
booleantrue{ myBoolean: true }
nullnull{ myNull: null }
number1234{ myNumber: 1234 }
string*hello world{ myString: "hello world" }
JSON*{ "myKey": "myValue" }{myJSON: '{ "myKey": "myValue" }' }

* Note that strings and JSON are unquoted when used as primary KV value and quoted when used within other data structures