blue.microcosm.links.getManyToManyCounts

microcosm.blue

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

Validate Record

Validate a record against blue.microcosm.links.getManyToManyCounts

Validation Options
Treat any remaining unresolved references as valid

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

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@