Skip to content

Collection.query

POST /{namespace}/collections/query

Query reads any Nouns the caller’s Permissions allow, by SQL or a Relationship path, across every System in one call.

Mode
do
Event
Collection.queried

Inputs

InputTypeRequiredDescription
querytextrequiredSQL, or a Relationship path such as customer.subscriptions.invoices.
savebooleanTrue saves it as a Collection defined by the query.

Outputs

OutputTypeRequiredDescription
rowsjsonrequiredThe matching records.
collectionCollectionrequiredThe Collection the query read.

Effects

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Collection.query

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.