Operation to store, update, or delete an item.

interface PutOperation {
    key: string;
    namespace: string[];
    value: null | Record<string, any>;
}

Properties

Properties

key: string

Unique identifier for the document. Should be distinct within its namespace.

namespace: string[]

Hierarchical path for the item. Represented as a tuple of strings, allowing for nested categorization.

Example

["documents", "user123"]
value: null | Record<string, any>

Data to be stored, or None to delete the item. Schema:

  • Should be an object where:
    • Keys are strings representing field names
    • Values can be of any serializable type
  • If null, it indicates that the item should be deleted