Skip to content
Playground(another site)

bynk.store.unknown_kind

Error A store field's type is not a known storage kind.

The type of a store field names a storage kind, which says how the state is persisted and which operations it has; it is not an ordinary type. The kinds are Cell, Map, Set, Log and Cache; Queue is reserved but not yet supported (bynk.store.kind_unsupported). A List or a record is not one, because nothing would say how to read or update it atomically. Pick the kind that matches how you use the data: Set for membership, Map for lookup by key, Log to append, Cell for one value.

Example

store tags: List[String] // ✗ `List` is not a storage kind
store tags: Set[String] // ✓ a storage kind

In the Book

See also

  • Every code in its category, Agent storage, on the diagnostic index.
  • bynk explain bynk.store.unknown_kind shows the same from the installed toolchain, without a network.