pub.techne.draft.query.composeRecords
Up to 12 generic reads in one call. Each step is a pub.techne.draft.query.listRecords call (a list step) or a pub.techne.draft.query.getRecords call (a get step) and answers exactly as that method would for the same caller. A step runs once the steps it binds to have answered (at most 4 at once); the answer does not depend on which finished first. A binding, a string `$<step>.<output>` in a list step's `params` or among a get step's `uris`, stands for that output over the earlier step's records, deduplicated in the order first seen (possibly empty). Outputs: `uri`, `author`, `type`, `space`, `subject`, `references`, and `value.<path>` (string values only). A param may mix literals and bindings and stands for their union. A bound param is a list, so the query uses it with `in` on an indexed role; bind indexed outputs (they never hold a comma) rather than free text. A literal param may not start with `$`. A wrong shape refuses the whole call as InvalidRequest: more than 12 steps, a list step's `limit` over 50000, more than 500 literal `uris`, a `limit` or `cursor` on a `return: false` step. Once running, a step fails alone, its error under its name in `errors`: its method refuses it, a binding fills more than 500 `uris` or 2000 values, the steps read in one page answer more than 3000 records in all, a `return: false` step matches more than 50000, or the paged steps (a `limit` over 500, or `return: false`) read more than 50000 in all. Every step bound to a failed step is `Skipped`, naming the root failure; the others answer, and the call is 200. Budget: a signed-in caller has 20000 rows, refilled at 500 a second. A call is charged up front its declared maximum (a list step's `limit`, else its query's limit or 50, 500 for a `queryUri` or paged step; a get step's URIs, 500 if bound; at most 3000) plus 1000 per `count` step, is given back what it did not read, and is charged afterwards, into debt if need be, for what it read beyond that. A call the budget cannot cover now is RateLimitExceeded. Anonymous callers spend a budget per client IP (one shared budget ten times the size when the IP is unknown). `handles` and `curation` on a list step answer as getRecords does. The body must be application/json, else 415 before it is parsed or charged. A procedure only for its body size: nothing is written, and anyone may call it, signed in or not. Draft tier.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | query.draft.techne.pub |
| Commit rev | 3n3iob7u4ow2u |
| Indexed |
Procedures don't store records of their own, so there is no record activity to show.