Version: latest
agrag.schema.stored.require_stored_schema
require_stored_schema(graph_store:GraphStore, *, timeout:float | None = None) -> GraphSchema
Return the stored schema, raising when the graph has none.
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– The stored schema.
Raises:
StoredSchemaMissingError– The graph has no stored schema.