Skip to main content
Databases are collections of documents with structured property columns. Think of a database as a spreadsheet view over your KB documents: each row is a document, each column is a typed property. Property values are backed by the tag system.
New to databases? See Databases for the mental model — including the key distinction between tag-backed columns (select, multi_select, status, checkbox) and scalar properties (number, date, text, etc.).
Databases are not versioned — they’re stable collection definitions that act as a lens over versioned documents.

Parameters

Actions

Column Types

Tag-based (options reference tag IDs): Scalar (set directly via set_property): number, date, text, url, email, page_ref

set_property

set_property is the most flexible action — it works with any column type:
  • Scalar columns: pass the value as-is (string for text/url/email, number for number, ISO string for date)
  • Tag-based columns: pass the option name as a string — Moxn auto-creates the option tag if it doesn’t exist
  • select/status: replaces the current value
  • multi_select: adds the value to existing values
  • Pass null to clear any property

Branch Filter (list_documents)

When branchFilter is set, documents are resolved on that branch if it exists, otherwise falls back to main. Useful for previewing “what the database looks like after merging the feature branch.”

Examples

  • tags — manage the tag definitions backing column options
  • changesets — coordinate multi-document merges from a database