pub.techne.draft.commons.getSidecars
The records about one record: every visible record the index links to it. That is a record whose indexed `subject_uri` names it (a sidecar's `subject`; for other record types, the reference the index keeps there, such as an event config's `event` or a claim's `origin`), a pair assertion's `other` (sameAs, distinctFrom), or a pub.techne.draft.containedIn's `container`. Other fields that name a record are not matched, unless `field` is given: then the match is every visible record that names the record in that top-level field, or in any field with `field` = `*` (a funding receipt's `to`, a relationship's `place`, a derivation's `inputs`). By default only trusted sidecars; see pub.techne.draft.commons.defs#sidecarView for what trusted means. Trusted sidecars come first, then by collection and AT-URI. At most 1000 are returned and there is no cursor: when there were more, `truncated` is true (narrow with `collection`). Anonymous.
Details · query
| Kind | query |
|---|---|
| Authority | commons.draft.techne.pub |
| Commit rev | 3n3iob3dcvo2u |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "The records about one record: every visible record the index links to it. That is a record whose indexed `subject_uri` names it (a sidecar's `subject`; for other record types, the reference the index keeps there, such as an event config's `event` or a claim's `origin`), a pair assertion's `other` (sameAs, distinctFrom), or a pub.techne.draft.containedIn's `container`. Other fields that name a record are not matched, unless `field` is given: then the match is every visible record that names the record in that top-level field, or in any field with `field` = `*` (a funding receipt's `to`, a relationship's `place`, a derivation's `inputs`). By default only trusted sidecars; see pub.techne.draft.commons.defs#sidecarView for what trusted means. Trusted sidecars come first, then by collection and AT-URI. At most 1000 are returned and there is no cursor: when there were more, `truncated` is true (narrow with `collection`). Anonymous.",
"errors": [
{
"name": "InvalidRequest"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"sidecars": {
"items": {
"ref": "pub.techne.draft.commons.defs#sidecarView",
"type": "ref"
},
"type": "array"
},
"truncated": {
"description": "Present and true when more than 1000 sidecars matched and the rest were left out.",
"type": "boolean"
}
},
"required": [
"sidecars"
],
"type": "object"
}
},
"parameters": {
"properties": {
"collection": {
"description": "Only sidecars of this collection.",
"format": "nsid",
"type": "string"
},
"field": {
"description": "Match records that name the subject in this top-level field (at any depth inside it), or in any field with `*`, instead of the three references above.",
"maxLength": 64,
"type": "string"
},
"includeUntrusted": {
"default": false,
"description": "Also return sidecars no endorsed rule vouches for, marked `trusted: false`.",
"type": "boolean"
},
"subject": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"subject"
],
"type": "params"
},
"type": "query"
}
},
"id": "pub.techne.draft.commons.getSidecars",
"lexicon": 1
}