Skip to main content

Atoms API Reference

List Atoms

Retrieve a collection of atoms with optional filtering and pagination.

query GetAtoms($first: Int, $after: String) {
  atoms(first: $first, after: $after) {
    edges {
      node {
        id
        metadata
        createdAt
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Parameters

  • first (Int): Number of items to return
  • after (String): Cursor for pagination

Get Single Atom

Fetch detailed information about a specific atom by its ID.

query GetAtom($id: ID!) {
  atom(id: $id) {
    id
    metadata
    createdAt
    updatedAt
  }
}

Parameters

  • id (ID!): The unique identifier of the atom

Response Types

Atom

type Atom {
  id: ID!
  metadata: JSON!
  createdAt: DateTime!
  updatedAt: DateTime!
}

AtomConnection

type AtomConnection {
  edges: [AtomEdge!]!
  pageInfo: PageInfo!
}

type AtomEdge {
  node: Atom!
  cursor: String!
}

type PageInfo {
  hasNextPage: Boolean!
  endCursor: String
}