graphql
Run read-only GraphQL queries to explore note connections, clusters, and repository grounding. Get answers on relationships and citations across the knowledge base.
Instructions
Run a GraphQL query against the collection's structure. Use this for questions the other tools cannot answer — which notes are most connected, what a cluster contains, which repositories ground the most claims, how two notes relate.
Read-only: no mutations, fragments, or variables. Inline argument values.
Examples: { notes(orderBy: degree, first: 5) { title degree moc { title } } } { notes(moc: "moc-faction-domain-model") { title summary } } { note(id: "demesne-limit") { title links { title } sources { claim url } } } { repositories { name citationCount noteCount } }
SCHEMA:
The zettelkasten as a graph. Read-only — queries only.
enum NoteType { concept moc } enum NoteOrder { title degree citations }
type Query { notes(type: NoteType, moc: ID, tag: String, repo: String, search: String, linkedTo: ID, orderBy: NoteOrder, first: Int): [Note!]! note(id: ID!): Note mocs: [Note!]! concepts(first: Int): [Note!]! tags: [Tag!]! repositories: [Repository!]! stats: Stats }
type Note { id: ID title: String type: NoteType summary: String tags: [String!]! updated: String path: String url: String moc: Note links(first: Int): [Note!]! backlinks(first: Int): [Note!]! neighbors(first: Int): [Note!]! linkCount: Int backlinkCount: Int degree: Int sources: [Source!]! sourceCount: Int repositories: [String!]! }
type Source { repo: String path: String ref: String shortRef: String lines: String claim: String url: String }
type Tag { name: String count: Int notes: [Note!]! }
type Repository { name: String url: String citationCount: Int noteCount: Int pinnedRefs: [String!]! notes: [Note!]! }
type Stats { noteCount: Int mocCount: Int conceptCount: Int citationCount: Int linkCount: Int repositoryCount: Int repositories: [String!]! updated: String }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The GraphQL query document. |