ValueInput
ValueInput =
ArkivValue|boolean|number|bigint|string
Defined in: src/attr/values.ts:409
A JavaScript value accepted wherever a typed value is expected: either a tagged value, or one of the four bare forms that map unambiguously onto a single type.
| bare form | type |
|---|---|
boolean | bool |
number | i32 |
bigint | u256 |
string | str |
Anything else — a large number, a decimal, an address, an entity key — must name its type, which
is what keeps "0x1234..." a string rather than silently becoming a key.
These defaults apply identically when writing and when querying, so a value written bare and
queried bare always agrees with itself. The mismatch to watch for is mixing the two: an attribute
written as u64 does not match a bare bigint predicate, because that predicate asserts
u256. A type mismatch is not an error to the engine — it simply matches nothing.