{
"id": "blue.microcosm.links.getManyToManyCounts",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"counts_by_other_subject"
],
"properties": {
"cursor": {
"type": "string",
"description": "pagination cursor"
},
"counts_by_other_subject": {
"type": "array",
"items": {
"ref": "#countBySubject",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"subject",
"source",
"pathToOther"
],
"properties": {
"did": {
"type": "array",
"items": {
"type": "string",
"format": "did"
},
"description": "filter links to those from specific users"
},
"limit": {
"type": "integer",
"default": 16,
"maximum": 100,
"minimum": 1,
"description": "number of results to return"
},
"source": {
"type": "string",
"description": "collection and path specification for the primary link"
},
"subject": {
"type": "string",
"format": "uri",
"description": "the primary target being linked to (at-uri, did, or uri)"
},
"pathToOther": {
"type": "string",
"description": "path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')"
},
"otherSubject": {
"type": "array",
"items": {
"type": "string"
},
"description": "filter secondary links to specific subjects"
}
}
},
"description": "count many-to-many relationships with secondary link paths"
},
"countBySubject": {
"type": "object",
"required": [
"subject",
"total",
"distinct"
],
"properties": {
"total": {
"type": "integer",
"description": "total number of links to this subject"
},
"subject": {
"type": "string",
"description": "the secondary subject being counted"
},
"distinct": {
"type": "integer",
"description": "number of distinct DIDs linking to this subject"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
Metadata
- DID
-
did:plc:lulmyldiq4sb2ikags5sfb25
- CID
-
bafyreih67y2ida7ioh5lyridztpmqxpgccgi4wnmzznm2gx5xec7lzrnpu
- Indexed At
- 2026-07-26 20:11 UTC
- AT-URI
-
at://did:plc:lulmyldiq4sb2ikags5sfb25/com.atproto.lexicon.schema/blue.microcosm.links.getManyToManyCounts