Skip to main content
Version: latest

agrag.schema.stored.read_stored_schema

read_stored_schema(graph_store:GraphStore, *, timeout:float | None = None) -> GraphSchema | None

Return the schema stored in the graph, or None when none was stored.

Parameters:

  • graph_store (GraphStore) – The store to read the singleton record from.
  • timeout (float | None) – Server-side transaction timeout in seconds. None uses the server's default.

Returns:

  • GraphSchema | None – The stored schema, or None when the record does not exist.