graph

ontology.freeze

Freeze the graph ontology.

strata graph ontology freeze

wire graph_freeze_ontology

Validates the draft ontology and freezes it. Validation requires at least one declared type and rejects link types whose source or target reference undeclared object types (`failed_precondition.engine.graph_ontology_freeze`). After freezing, writes enforce declared node object types, required properties, and link-type endpoint rules; the ontology itself can no longer change (`failed_precondition.engine.graph_ontology_frozen`).

Successful mutations return an acknowledgement of the outcome: for a state-changing write, the affected target with the mutation effect and commit facts; for mutations that produce a domain result (such as a branch or a promotion outcome), that result object.

To see the complete help for this command, run:

strata graph ontology freeze --help

Example

Freeze the ontology so its types can no longer change.

strata graph create gstrata graph ontology define-object-type g personstrata graph ontology freeze gstrata graph ontology get g

Parameters

NameTypeRequiredDescription
graphstringyesGraph name.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

MutationAck<GraphOntologyFreeze>

  • dataobject
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 31 Graph commands

agents: this page as markdown → /docs/reference/graph/ontology/freeze.md