Skip to content

Collection.queried

Emitted each time a Collection is queried.

Collection.query emits Collection.queried when it completes on a Collection.

PropertyValue
Emitted byCollection.query
NounCollection
WakesNone.

Payload

Each delivery is an Event record. data holds what Collection.query returns.

FieldTypeRequiredDescription
namestringrequiredCollection.queried.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.rowsjsonrequiredThe matching records.
data.collectionCollectionrequiredThe Collection the query read.
data.collection.idstringrequiredThe stable identifier, which never changes.
data.collection.typelist of NounrequiredThe Nouns this Thing is an instance of.
data.collection.statestringThe current state in its lifecycle.
data.collection.outsidejsonThe ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating.
data.collection.queryjsonThe saved query that defines a dynamic Collection.

Example

JSON
{
  "$id": "https://api.sb/kilnbakery.com/events/event_1",
  "$type": "Event",
  "name": "Collection.queried",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "rows": {},
    "collection": {
      "$id": "https://api.sb/kilnbakery.com/collections/collection_1",
      "$type": "Collection",
      "id": "Example id",
      "type": [
        "noun_1"
      ],
      "state": "Example state",
      "outside": {},
      "query": {}
    }
  },
  "seq": 1
}