LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpoint.postgresaioAsyncPostgresSaverlist
    Method●Since v1.0

    list

    Copy
    list(
      self,
      config: RunnableConfig | None,
      *,
      filter: dict[str, 
    View source on GitHub
    Any
    ]
    |
    None
    =
    None
    ,
    before
    :
    RunnableConfig
    |
    None
    =
    None
    ,
    limit
    :
    int
    |
    None
    =
    None
    )
    ->
    Iterator
    [
    CheckpointTuple
    ]

    Parameters

    NameTypeDescription
    config*RunnableConfig | None

    Base configuration for filtering checkpoints.

    filterdict[str, Any] | None
    Default:None

    Additional filtering criteria for metadata.

    beforeRunnableConfig | None
    Default:None

    If provided, only checkpoints before the specified checkpoint ID are returned.

    limitint | None
    Default:None

    List checkpoints from the database.

    This method retrieves a list of checkpoint tuples from the Postgres database based on the provided config. The checkpoints are ordered by checkpoint ID in descending order (newest first).

    Maximum number of checkpoints to return.