Skip to content

SchemaService ​

Schema management: node label and edge type definitions, and the named constraints declared over them.

A type definition describes an individual record: property types, requiredness, defaults and computed properties. It never declares uniqueness. Uniqueness, node keys and the other constraints are separate named objects, created and dropped through the constraint RPCs, which share one catalog and one admission path with CREATE CONSTRAINT / DROP CONSTRAINT in Cypher: a constraint created here is the same object a query sees, and the reverse.

Transport

All methods are available via:

  • gRPC on port 7080 — native high-performance API
  • REST/JSON on port 7081 — HTTP/JSON transcoding via embedded structured-proxy

Methods ​

PublishSchema ​

Publish label definitions, edge type definitions and constraints together, in one catalog change or in none. Every declaration is checked against one view of the catalog plus the package itself, so a constraint may name a label the same request defines, in any order. An absent object is created, an equal one kept as it is, and a different one refused unless its declaration names the revision it changes; an object the request does not mention is left alone. When every object is already in place nothing is written, scanned or started.

Acceptance is not readiness: a definition that could refuse stored records is proved over them in the background, and a uniqueness is proved by the build of its index; the rules in force before stay until then. The response names that work per object; AwaitSchema waits for it.

Refused, with nothing published, when the request is malformed or too large (INVALID_ARGUMENT), when a declaration differs from the object in place without naming its revision (FAILED_PRECONDITION, reason CATALOG_OBJECT_DIFFERS), when a change names a revision the object is no longer at (FAILED_PRECONDITION, reason CATALOG_REVISION_MISMATCH), or when a declaration cannot hold (FAILED_PRECONDITION).

HTTP: POST /v2/graph/schema/publications

Request: PublishSchemaRequest

FieldTypeDescription
labelsLabelDeclaration[]Label definitions.
edge_typesEdgeTypeDeclaration[]Edge type definitions.
constraintsConstraintDeclaration[]Constraints. The request carries at most 4096 declarations in all; a larger one is refused, never split.
operationOperationRefThe client operation the publication is, so it takes effect at most once however it is retried: a retry after a lost reply of one that committed is refused with FAILED_PRECONDITION, reason OPERATION_SETTLED, naming its outcome. Unset: no operation identity. A request that changes nothing records nothing under it.

Response: PublishSchemaResponse

FieldTypeDescription
committedboolWhether a catalog change was committed. False when every declaration was already in place.
objectsPublishedSchemaObject[]Every declared object: labels, then edge types, then constraints, each in request order.

AwaitSchema ​

Wait up to the request's wait for background schema work to put its object in force: the proof of a label definition, or the build of a constraint's index, named by the operations PublishSchema returned. Waiting, or giving up waiting, cancels nothing; CancelIndexBuild cancels either kind of operation.

HTTP: POST /v2/graph/schema/publications/await

Request: AwaitSchemaRequest

FieldTypeDescription
operationsuint64[]The operations to wait for, as PublishedSchemaObject.operation named them. An operation the server knows nothing of is reported FAILED.
waitDurationHow long to wait for all of them together before answering. Unset or zero: answer at once.

Response: AwaitSchemaResponse

FieldTypeDescription
operationsOperationReadiness[]Each requested operation, in request order.

CreateLabel ​

Create a node label definition. Creating a type never builds an index and never declares a constraint.

HTTP: POST /v2/graph/schema/labels

Request: CreateLabelRequest

FieldTypeDescription
namestringLabel name, for example "User". Case-sensitive. A label that already has a definition is refused.
propertiesPropertyDefinition[]Stored properties. Names are unique within the request.
computed_propertiesComputedPropertyDefinition[]Computed properties. Names are unique and distinct from the stored ones.
schema_modeSchemaModeHow the label validates and stores properties.
temporalboolWhether nodes of the label are bitemporal. Cannot be changed later.
kindLabelKindA type label or an auxiliary one. An auxiliary label declares no properties, computed properties, IMPLIES or TEMPORAL; one that stored nodes carry as their type is refused. Cannot be changed later.
impliesstring[]For a type label, the labels every node of the type carries with it. Each must be a type label or have no definition; every property one of them declares, transitively, must be declared here with the same type; none may lead back to this label. A label whose stored nodes lack one of them is refused. Order and repeats do not matter. Cannot be changed later.

Response: Label

FieldTypeDescription
namestringLabel name. Case-sensitive.
declaredboolFalse for a label stored nodes carry without a definition; every other field is then empty.
propertiesPropertyDefinition[]Stored properties, by name.
computed_propertiesComputedPropertyDefinition[]Computed properties, by name.
schema_modeSchemaModeHow the label validates and stores properties.
temporalboolWhether nodes of the label carry a valid-time interval and keep one version per interval start. Fixed when the label is created.
schema_revisionuint64Revision of the definition. Every published change of the definition or of the label's constraints advances it; a published revision never changes.
candidateLabelCandidateA definition published but not yet in force: the stored nodes are being proved against it. The fields above stay the rules in force until the proof puts it in force; every write meanwhile must satisfy both. Unset when no proof is running.
kindLabelKindWhether the label is a node's type or an auxiliary label. Fixed when the label is created.
impliesstring[]For a type label, the labels every node of the type carries with it, as declared, sorted: the server writes them, transitively, on each node. Empty for an auxiliary label. Fixed when the label is created.

ListLabels ​

List the node labels: every declared label definition, and every label that stored nodes carry without a definition.

HTTP: GET /v2/graph/schema/labels

Request: ListLabelsRequest

Empty request (no fields).

Response: ListLabelsResponse

FieldTypeDescription
labelsLabel[]Every label, ordered by name.

CreateEdgeType ​

Create an edge type definition.

HTTP: POST /v2/graph/schema/edge-types

Request: CreateEdgeTypeRequest

FieldTypeDescription
namestringEdge type name, for example "FOLLOWS". Case-sensitive. An edge type that already has a definition is refused.
propertiesPropertyDefinition[]Stored properties. Names are unique within the request.
temporalboolWhether edges of the type are temporal. Cannot be changed later.
discriminatorstringThe declared property that, with the endpoints, identifies one edge, so one endpoint pair can hold several edges of the type. It must be a NOT NULL property of type INT64, FLOAT64, BOOL, TIMESTAMP, STRING or BLOB. Empty: at most one edge per endpoint pair, or, for a temporal type, edges identified by their "valid_from". Cannot be changed later.

Response: EdgeType

FieldTypeDescription
namestringEdge type name. Case-sensitive.
declaredboolFalse for an edge type stored edges carry without a definition; every other field is then empty.
propertiesPropertyDefinition[]Stored properties, by name.
temporalboolWhether edges of the type carry a valid-time interval.
schema_revisionuint64Revision of the definition. See Label.schema_revision.
discriminatorstringThe property whose value, with the edge type and the two endpoints, identifies one edge: one endpoint pair holds one edge per value. Empty for a type with at most one edge per endpoint pair. A temporal type that named none at creation is identified by "valid_from". Fixed when the type is created.

ListEdgeTypes ​

List the edge types: every declared edge type definition, and every edge type that stored edges carry without a definition.

HTTP: GET /v2/graph/schema/edge-types

Request: ListEdgeTypesRequest

Empty request (no fields).

Response: ListEdgeTypesResponse

FieldTypeDescription
edge_typesEdgeType[]Every edge type, ordered by name.

CreateConstraint ​

Create a named constraint. A uniqueness or node-key constraint provisions the index that enforces it: the constraint is published VALIDATING and enforced on every write from then on, and the build validating it against the stored data is admitted as a server-owned operation. The call waits for that build up to the request's wait. It returns the constraint ACTIVE once the build published it, or VALIDATING with the build when the wait ran out first; the build then goes on without the call. Stored data that breaks the constraint, or a cancellation, within the wait fails the call with nothing left behind.

HTTP: POST /v2/graph/schema/constraints

Request: CreateConstraintRequest

FieldTypeDescription
namestringConstraint name, unique in the database. Empty: the server derives one and returns it.
propertiesstring[]The constrained properties, in order. NOT_NULL and PROPERTY_TYPE take exactly one; UNIQUE and NODE_KEY take one or more, with no repeats.
kindConstraintKindWhat the constraint requires. Required.
property_typePropertyTypeThe required type, for kind PROPERTY_TYPE; must be unset for any other kind.
if_not_existsboolWhen true, a constraint of the same name, or one requiring the same of the same properties of the same label, already in place makes the call succeed and return that constraint, VALIDATING with its running build included: a retry after a lost reply finds the build the first call admitted rather than admitting a second. When false, either is refused.
waitDurationHow long the call waits for the build of the backing index. Unset: the server's default (index_build_statement_wait_secs). Zero: the call returns once the constraint and its build are admitted. Ignored for the kinds checked on each node alone, which have no build.
on_duplicate_renamestringUNIQUE and NODE_KEY only: a string property among properties the build may change to end a duplicate it finds in the stored data, by appending a random suffix to one holder's value (ON DUPLICATE RENAME). Each repair commits as its own transaction, is visible at once, and is kept whatever the build's outcome. Empty: the build fails on the first duplicate. Later writes are refused as duplicates as always.
scopeConstraintScopeUNIQUE only: the nodes the uniqueness holds among. Unset: every node of the label. Two constraints over the same properties with different scopes are different constraints.
labelstringThe label whose nodes are constrained.

Response: Constraint

FieldTypeDescription
namestringConstraint name, unique in the database.
propertiesstring[]The constrained properties, in declaration order; the order is the column order of the supporting index.
kindConstraintKindWhat the constraint requires.
property_typePropertyTypeThe required type, for kind PROPERTY_TYPE; unset for every other kind.
stateConstraintStateWhere the constraint is in its life.
backing_indexstringName of the index the constraint owns and is enforced through, for UNIQUE and NODE_KEY; empty for the kinds checked on each node alone. The index is dropped with the constraint and cannot be dropped on its own.
buildIndexBuildThe build of the backing index, for UNIQUE and NODE_KEY: while the constraint is VALIDATING, the operation deciding whether it becomes ACTIVE. Unset for the kinds checked on each node alone.
scopeConstraintScopeFor UNIQUE, the nodes the uniqueness holds among: only nodes the predicate admits are compared, and the backing index holds only them. Unset: every node of the label.
labelstringThe nodes whose label is this one.

DropConstraint ​

Drop a named constraint, and the index it owns, in one catalog change. The type definition it constrains is left unchanged.

HTTP: DELETE /v2/graph/schema/constraints/{name}

Request: DropConstraintRequest

FieldTypeDescription
namestringName of the constraint to drop.
if_existsboolWhen true, a missing constraint makes the call succeed. When false, it is refused.

Response: Empty

Empty response (no fields).

ListConstraints ​

List the named constraints with their state and supporting index.

HTTP: GET /v2/graph/schema/constraints

Request: ListConstraintsRequest

Empty request (no fields).

Response: ListConstraintsResponse

FieldTypeDescription
constraintsConstraint[]Every constraint, ordered by name.

ListIndexBuilds ​

List the index builds this server knows: every build the catalog records, with its state and progress.

HTTP: GET /v2/graph/schema/index-builds

Request: ListIndexBuildsRequest

Empty request (no fields).

Response: ListIndexBuildsResponse

FieldTypeDescription
buildsIndexBuild[]Every build, ordered by operation.

GetIndexBuild ​

Inspect one index build, after waiting up to the request's wait for its outcome. Waiting, or giving up waiting, cancels nothing. An operation no build has fails with NOT_FOUND.

HTTP: GET /v2/graph/schema/index-builds/{operation}

Request: GetIndexBuildRequest

FieldTypeDescription
operationuint64The build to inspect. Required: an absent operation is refused, never read as operation 0.
waitDurationHow long to wait for the build to reach an outcome before answering. Unset or zero: answer at once.

Response: IndexBuild

FieldTypeDescription
operationuint64Identity of the build, assigned when it is admitted and never reused. Inspected with GetIndexBuild, cancelled with CancelIndexBuild.
indexstringName of the index the build fills. Empty once the index is withdrawn.
labelstringLabel whose nodes the index covers. Empty once the index is withdrawn.
stateIndexBuildStateWhere the build stands.
phaseIndexBuildPhaseWhere a RUNNING build stands on the executor of this server holding it; UNSPECIFIED when none does.
indexeduint64Nodes indexed so far. Progress, not proof of coverage.
failurestringWhy the build failed, for FAILED; empty otherwise.
rename_propertystringThe property the build may change to repair a duplicate; empty for a build that fails on the first one.
repaireduint64Repairs the build has committed so far. Each changed a node's value and is listed by ListIndexBuildRepairs; none is undone by a cancellation or a failure of the build.

CancelIndexBuild ​

Cancel an index build. The index it was creating is withdrawn, with the constraint that owns it, in the same catalog change; an index it was rebuilding is kept, failed, and its constraint keeps holding. A build that already has an outcome keeps it: a publication that committed first is never undone. Returns the build as it stands after the call. An operation no build has fails with NOT_FOUND.

HTTP: POST /v2/graph/schema/index-builds/{operation}/cancel

Request: CancelIndexBuildRequest

FieldTypeDescription
operationuint64The build to cancel. Required: an absent operation is refused, never read as operation 0.

Response: IndexBuild

FieldTypeDescription
operationuint64Identity of the build, assigned when it is admitted and never reused. Inspected with GetIndexBuild, cancelled with CancelIndexBuild.
indexstringName of the index the build fills. Empty once the index is withdrawn.
labelstringLabel whose nodes the index covers. Empty once the index is withdrawn.
stateIndexBuildStateWhere the build stands.
phaseIndexBuildPhaseWhere a RUNNING build stands on the executor of this server holding it; UNSPECIFIED when none does.
indexeduint64Nodes indexed so far. Progress, not proof of coverage.
failurestringWhy the build failed, for FAILED; empty otherwise.
rename_propertystringThe property the build may change to repair a duplicate; empty for a build that fails on the first one.
repaireduint64Repairs the build has committed so far. Each changed a node's value and is listed by ListIndexBuildRepairs; none is undone by a cancellation or a failure of the build.

ListIndexBuildRepairs ​

List the duplicates a build with ON DUPLICATE RENAME repaired: the node, the property and the value replaced by which. An operation no build has fails with NOT_FOUND.

HTTP: GET /v2/graph/schema/index-builds/{operation}/repairs

Request: ListIndexBuildRepairsRequest

FieldTypeDescription
operationuint64The build whose repairs to list. Required: an absent operation is refused, never read as operation 0.

Response: ListIndexBuildRepairsResponse

FieldTypeDescription
repairsIndexBuildRepair[]Every repair the build committed, ordered by node.

CheckIndex ​

Start a check of a B-tree index against the records it is derived from, in the background, repairing the entries that disagree. Returns the check as admitted; a check already running for the index's generation is returned as it is. An index that does not exist fails with NOT_FOUND; one that is not a ready B-tree index, or a server that takes no writes (the leader runs checks), with FAILED_PRECONDITION.

HTTP: POST /v2/graph/schema/index-checks

Request: CheckIndexRequest

FieldTypeDescription
index_iduint64The index's identity.
index_namestringThe name bound to the index now. A name that looks like a number is a name.

Response: IndexCheck

FieldTypeDescription
operationuint64Identity of the check: the generation it checks. Inspected with GetIndexCheck, cancelled with CancelIndexCheck.
index_iduint64Identity of the logical index checked.
indexstringName of the index, empty for an unnamed or dropped index.
labelstringLabel whose nodes the index covers, empty once it is dropped.
integrityIndexIntegrityWhat is known about the generation.
stateIndexCheckStateWhere the latest check stands; UNSPECIFIED when none was admitted.
passesuint32Complete passes over the records and the entries so far.
checkeduint64Records and entries checked so far. Progress, not proof: only VERIFIED is.
mismatchesuint64Disagreements found so far.
repaireduint64Disagreements repaired so far.
conflictsIndexSourceConflict[]Pairs of records that hold one value of a unique index: no entry can represent them, and no check changes a record.
rebuilt_intouint64The generation a rebuild fills, when the damage was too wide to repair entry by entry. Unset otherwise.
failurestringWhy the check failed, for FAILED; empty otherwise.

ListIndexChecks ​

List every index generation's integrity and its latest check.

HTTP: GET /v2/graph/schema/index-checks

Request: ListIndexChecksRequest

Empty request (no fields).

Response: ListIndexChecksResponse

FieldTypeDescription
checksIndexCheck[]Every generation with an integrity record, ordered by operation.

GetIndexCheck ​

Inspect one check, after waiting up to the request's wait for its outcome. Waiting cancels nothing. An operation no check has fails with NOT_FOUND.

HTTP: GET /v2/graph/schema/index-checks/{operation}

Request: GetIndexCheckRequest

FieldTypeDescription
operationuint64The check to inspect. Required: an absent operation is refused, never read as operation 0.
waitDurationHow long to wait for the check to reach an outcome before answering. Unset or zero: answer at once.

Response: IndexCheck

FieldTypeDescription
operationuint64Identity of the check: the generation it checks. Inspected with GetIndexCheck, cancelled with CancelIndexCheck.
index_iduint64Identity of the logical index checked.
indexstringName of the index, empty for an unnamed or dropped index.
labelstringLabel whose nodes the index covers, empty once it is dropped.
integrityIndexIntegrityWhat is known about the generation.
stateIndexCheckStateWhere the latest check stands; UNSPECIFIED when none was admitted.
passesuint32Complete passes over the records and the entries so far.
checkeduint64Records and entries checked so far. Progress, not proof: only VERIFIED is.
mismatchesuint64Disagreements found so far.
repaireduint64Disagreements repaired so far.
conflictsIndexSourceConflict[]Pairs of records that hold one value of a unique index: no entry can represent them, and no check changes a record.
rebuilt_intouint64The generation a rebuild fills, when the damage was too wide to repair entry by entry. Unset otherwise.
failurestringWhy the check failed, for FAILED; empty otherwise.

CancelIndexCheck ​

Cancel a check. Repairs it already committed stay. Returns the check as it stands after the call. An operation no check has fails with NOT_FOUND.

HTTP: POST /v2/graph/schema/index-checks/{operation}/cancel

Request: CancelIndexCheckRequest

FieldTypeDescription
operationuint64The check to cancel. Required: an absent operation is refused, never read as operation 0.

Response: IndexCheck

FieldTypeDescription
operationuint64Identity of the check: the generation it checks. Inspected with GetIndexCheck, cancelled with CancelIndexCheck.
index_iduint64Identity of the logical index checked.
indexstringName of the index, empty for an unnamed or dropped index.
labelstringLabel whose nodes the index covers, empty once it is dropped.
integrityIndexIntegrityWhat is known about the generation.
stateIndexCheckStateWhere the latest check stands; UNSPECIFIED when none was admitted.
passesuint32Complete passes over the records and the entries so far.
checkeduint64Records and entries checked so far. Progress, not proof: only VERIFIED is.
mismatchesuint64Disagreements found so far.
repaireduint64Disagreements repaired so far.
conflictsIndexSourceConflict[]Pairs of records that hold one value of a unique index: no entry can represent them, and no check changes a record.
rebuilt_intouint64The generation a rebuild fills, when the damage was too wide to repair entry by entry. Unset otherwise.
failurestringWhy the check failed, for FAILED; empty otherwise.

Reindex ​

Rebuild a B-tree index from its records into a fresh generation of the same index, and wait up to the request's wait for the build. Writers maintain the new generation at once; a constraint the index enforces stays enforced. Returns the build, which GetIndexBuild inspects. An index that does not exist fails with NOT_FOUND; one that is not a B-tree index with FAILED_PRECONDITION.

HTTP: POST /v2/graph/schema/index-rebuilds

Request: ReindexRequest

FieldTypeDescription
waitDurationHow long to wait for the build before answering; the build goes on either way. Unset or zero: answer once it is admitted.
index_iduint64The index's identity.
index_namestringThe name bound to the index now. A name that looks like a number is a name.

Response: IndexBuild

FieldTypeDescription
operationuint64Identity of the build, assigned when it is admitted and never reused. Inspected with GetIndexBuild, cancelled with CancelIndexBuild.
indexstringName of the index the build fills. Empty once the index is withdrawn.
labelstringLabel whose nodes the index covers. Empty once the index is withdrawn.
stateIndexBuildStateWhere the build stands.
phaseIndexBuildPhaseWhere a RUNNING build stands on the executor of this server holding it; UNSPECIFIED when none does.
indexeduint64Nodes indexed so far. Progress, not proof of coverage.
failurestringWhy the build failed, for FAILED; empty otherwise.
rename_propertystringThe property the build may change to repair a duplicate; empty for a build that fails on the first one.
repaireduint64Repairs the build has committed so far. Each changed a node's value and is listed by ListIndexBuildRepairs; none is undone by a cancellation or a failure of the build.

Types ​

ArrayType ​

A homogeneous array type.

FieldTypeDescription
elementPropertyTypeThe type of every element. Required.

AwaitSchemaRequest ​

FieldTypeDescription
operationsuint64[]The operations to wait for, as PublishedSchemaObject.operation named them. An operation the server knows nothing of is reported FAILED.
waitDurationHow long to wait for all of them together before answering. Unset or zero: answer at once.

AwaitSchemaResponse ​

FieldTypeDescription
operationsOperationReadiness[]Each requested operation, in request order.

CancelIndexBuildRequest ​

FieldTypeDescription
operationuint64The build to cancel. Required: an absent operation is refused, never read as operation 0.

CancelIndexCheckRequest ​

FieldTypeDescription
operationuint64The check to cancel. Required: an absent operation is refused, never read as operation 0.

CheckIndexRequest ​

FieldTypeDescription
index_iduint64The index's identity.
index_namestringThe name bound to the index now. A name that looks like a number is a name.

ComputedPropertyDefinition ​

A COMPUTED property of a label: evaluated from each node's data, stored once in the label definition and never per node. Read-only; a write to it is refused.

FieldTypeDescription
namestringProperty name, unique within the label and distinct from every stored property name.
computed_typeComputedTypeKind of computed property. Required.
formula_typeDecayFormulaTypeDecay formula, for DECAY and VECTOR_DECAY. Ignored for TTL.
lambdadoubleEXPONENTIAL rate, lambda = ln(2) / half_life_fraction, where half_life_fraction is the half-life as a fraction of duration_secs.
taudoublePOWER_LAW time scale as a fraction of the duration, greater than 0.
alphadoublePOWER_LAW exponent, greater than 0.
initialdoubleDECAY value at elapsed = 0.
targetdoubleDECAY value once elapsed >= duration_secs.
duration_secsuint64Length of the decay, or the TTL, in seconds. Greater than 0.
anchor_fieldstringName of the TIMESTAMP property elapsed time is measured from. Required; must be a stored TIMESTAMP property of the same label.
scopeTtlScopeTypeTTL only: what expiry deletes.
target_fieldstringTTL with scope SUBTREE only: the DOCUMENT property expiry deletes. Empty otherwise.

Constraint ​

A named constraint as the catalog holds it.

FieldTypeDescription
namestringConstraint name, unique in the database.
propertiesstring[]The constrained properties, in declaration order; the order is the column order of the supporting index.
kindConstraintKindWhat the constraint requires.
property_typePropertyTypeThe required type, for kind PROPERTY_TYPE; unset for every other kind.
stateConstraintStateWhere the constraint is in its life.
backing_indexstringName of the index the constraint owns and is enforced through, for UNIQUE and NODE_KEY; empty for the kinds checked on each node alone. The index is dropped with the constraint and cannot be dropped on its own.
buildIndexBuildThe build of the backing index, for UNIQUE and NODE_KEY: while the constraint is VALIDATING, the operation deciding whether it becomes ACTIVE. Unset for the kinds checked on each node alone.
scopeConstraintScopeFor UNIQUE, the nodes the uniqueness holds among: only nodes the predicate admits are compared, and the backing index holds only them. Unset: every node of the label.
labelstringThe nodes whose label is this one.

ConstraintDeclaration ​

A constraint in a PublishSchema request. A constraint is created when absent and kept when the one in place requires the same; changing one is dropping it and declaring another.

FieldTypeDescription
namestringConstraint name, unique in the database. Empty: the server derives one from the label, properties and kind, and returns it. A name holding a constraint that requires something else refuses the request.
propertiesstring[]The constrained properties, in order; see CreateConstraintRequest.properties.
kindConstraintKindWhat the constraint requires. Required.
property_typePropertyTypeThe required type, for kind PROPERTY_TYPE; must be unset for any other kind.
on_duplicate_renamestringUNIQUE and NODE_KEY only: the string property the build may change to end a stored duplicate; see CreateConstraintRequest.on_duplicate_rename.
scopeConstraintScopeUNIQUE only: the nodes the uniqueness holds among. Unset: every node of the label.
labelstringThe label whose nodes are constrained: one the catalog defines, one the same request declares, or neither (the constraint then gives it a FLEXIBLE definition).

ConstraintScope ​

The predicate that scopes a UNIQUE constraint: a test of one property of a node. A partial unique index (CREATE UNIQUE INDEX ... WHERE) declares a uniqueness with its predicate as the scope.

FieldTypeDescription
propertystringThe property the predicate tests. Required.
equals_stringstringThe property equals this string.
equals_intint64The property equals this integer.
equals_boolboolThe property equals this boolean.
presentEmptyThe property is present and not null.

CreateConstraintRequest ​

FieldTypeDescription
namestringConstraint name, unique in the database. Empty: the server derives one and returns it.
propertiesstring[]The constrained properties, in order. NOT_NULL and PROPERTY_TYPE take exactly one; UNIQUE and NODE_KEY take one or more, with no repeats.
kindConstraintKindWhat the constraint requires. Required.
property_typePropertyTypeThe required type, for kind PROPERTY_TYPE; must be unset for any other kind.
if_not_existsboolWhen true, a constraint of the same name, or one requiring the same of the same properties of the same label, already in place makes the call succeed and return that constraint, VALIDATING with its running build included: a retry after a lost reply finds the build the first call admitted rather than admitting a second. When false, either is refused.
waitDurationHow long the call waits for the build of the backing index. Unset: the server's default (index_build_statement_wait_secs). Zero: the call returns once the constraint and its build are admitted. Ignored for the kinds checked on each node alone, which have no build.
on_duplicate_renamestringUNIQUE and NODE_KEY only: a string property among properties the build may change to end a duplicate it finds in the stored data, by appending a random suffix to one holder's value (ON DUPLICATE RENAME). Each repair commits as its own transaction, is visible at once, and is kept whatever the build's outcome. Empty: the build fails on the first duplicate. Later writes are refused as duplicates as always.
scopeConstraintScopeUNIQUE only: the nodes the uniqueness holds among. Unset: every node of the label. Two constraints over the same properties with different scopes are different constraints.
labelstringThe label whose nodes are constrained.

CreateEdgeTypeRequest ​

FieldTypeDescription
namestringEdge type name, for example "FOLLOWS". Case-sensitive. An edge type that already has a definition is refused.
propertiesPropertyDefinition[]Stored properties. Names are unique within the request.
temporalboolWhether edges of the type are temporal. Cannot be changed later.
discriminatorstringThe declared property that, with the endpoints, identifies one edge, so one endpoint pair can hold several edges of the type. It must be a NOT NULL property of type INT64, FLOAT64, BOOL, TIMESTAMP, STRING or BLOB. Empty: at most one edge per endpoint pair, or, for a temporal type, edges identified by their "valid_from". Cannot be changed later.

CreateLabelRequest ​

FieldTypeDescription
namestringLabel name, for example "User". Case-sensitive. A label that already has a definition is refused.
propertiesPropertyDefinition[]Stored properties. Names are unique within the request.
computed_propertiesComputedPropertyDefinition[]Computed properties. Names are unique and distinct from the stored ones.
schema_modeSchemaModeHow the label validates and stores properties.
temporalboolWhether nodes of the label are bitemporal. Cannot be changed later.
kindLabelKindA type label or an auxiliary one. An auxiliary label declares no properties, computed properties, IMPLIES or TEMPORAL; one that stored nodes carry as their type is refused. Cannot be changed later.
impliesstring[]For a type label, the labels every node of the type carries with it. Each must be a type label or have no definition; every property one of them declares, transitively, must be declared here with the same type; none may lead back to this label. A label whose stored nodes lack one of them is refused. Order and repeats do not matter. Cannot be changed later.

DropConstraintRequest ​

FieldTypeDescription
namestringName of the constraint to drop.
if_existsboolWhen true, a missing constraint makes the call succeed. When false, it is refused.

EdgeType ​

An edge type as the catalog holds it.

FieldTypeDescription
namestringEdge type name. Case-sensitive.
declaredboolFalse for an edge type stored edges carry without a definition; every other field is then empty.
propertiesPropertyDefinition[]Stored properties, by name.
temporalboolWhether edges of the type carry a valid-time interval.
schema_revisionuint64Revision of the definition. See Label.schema_revision.
discriminatorstringThe property whose value, with the edge type and the two endpoints, identifies one edge: one endpoint pair holds one edge per value. Empty for a type with at most one edge per endpoint pair. A temporal type that named none at creation is identified by "valid_from". Fixed when the type is created.

EdgeTypeDeclaration ​

An edge type definition in a PublishSchema request.

FieldTypeDescription
namestringEdge type name, for example "FOLLOWS". Case-sensitive. At most once per request.
propertiesPropertyDefinition[]Stored properties. Names are unique within the declaration.
temporalboolWhether edges of the type are temporal. Fixed when the type is created.
discriminatorstringThe declared property that, with the endpoints, identifies one edge; see CreateEdgeTypeRequest.discriminator. Fixed when the type is created.
expected_revisionuint64As LabelDeclaration.expected_revision, for the edge type.

Empty ​

Carries nothing: the case is the whole failure.

No fields.

GetIndexBuildRequest ​

FieldTypeDescription
operationuint64The build to inspect. Required: an absent operation is refused, never read as operation 0.
waitDurationHow long to wait for the build to reach an outcome before answering. Unset or zero: answer at once.

GetIndexCheckRequest ​

FieldTypeDescription
operationuint64The check to inspect. Required: an absent operation is refused, never read as operation 0.
waitDurationHow long to wait for the check to reach an outcome before answering. Unset or zero: answer at once.

IndexBuild ​

An index build: the server-owned operation that fills one index and publishes it, independent of the request, connection or member that admitted it.

FieldTypeDescription
operationuint64Identity of the build, assigned when it is admitted and never reused. Inspected with GetIndexBuild, cancelled with CancelIndexBuild.
indexstringName of the index the build fills. Empty once the index is withdrawn.
labelstringLabel whose nodes the index covers. Empty once the index is withdrawn.
stateIndexBuildStateWhere the build stands.
phaseIndexBuildPhaseWhere a RUNNING build stands on the executor of this server holding it; UNSPECIFIED when none does.
indexeduint64Nodes indexed so far. Progress, not proof of coverage.
failurestringWhy the build failed, for FAILED; empty otherwise.
rename_propertystringThe property the build may change to repair a duplicate; empty for a build that fails on the first one.
repaireduint64Repairs the build has committed so far. Each changed a node's value and is listed by ListIndexBuildRepairs; none is undone by a cancellation or a failure of the build.

IndexBuildRepair ​

One duplicate a build repaired: the value of property it replaced on a node.

FieldTypeDescription
element_idstringThe node it changed, as an element id.
propertystringThe property it changed.
old_valuestringThe value the node held, which another node held too.
new_valuestringThe value the node holds since the repair.

IndexCheck ​

One index generation's integrity and its latest check: the server-owned operation that compares an index with its records, repairs the entries that disagree, and rebuilds the index when the damage is too wide.

FieldTypeDescription
operationuint64Identity of the check: the generation it checks. Inspected with GetIndexCheck, cancelled with CancelIndexCheck.
index_iduint64Identity of the logical index checked.
indexstringName of the index, empty for an unnamed or dropped index.
labelstringLabel whose nodes the index covers, empty once it is dropped.
integrityIndexIntegrityWhat is known about the generation.
stateIndexCheckStateWhere the latest check stands; UNSPECIFIED when none was admitted.
passesuint32Complete passes over the records and the entries so far.
checkeduint64Records and entries checked so far. Progress, not proof: only VERIFIED is.
mismatchesuint64Disagreements found so far.
repaireduint64Disagreements repaired so far.
conflictsIndexSourceConflict[]Pairs of records that hold one value of a unique index: no entry can represent them, and no check changes a record.
rebuilt_intouint64The generation a rebuild fills, when the damage was too wide to repair entry by entry. Unset otherwise.
failurestringWhy the check failed, for FAILED; empty otherwise.

IndexSourceConflict ​

Two records holding one value of a unique index.

FieldTypeDescription
element_idsstring[]The nodes holding the value, as element ids.

Label ​

A node label as the catalog holds it.

FieldTypeDescription
namestringLabel name. Case-sensitive.
declaredboolFalse for a label stored nodes carry without a definition; every other field is then empty.
propertiesPropertyDefinition[]Stored properties, by name.
computed_propertiesComputedPropertyDefinition[]Computed properties, by name.
schema_modeSchemaModeHow the label validates and stores properties.
temporalboolWhether nodes of the label carry a valid-time interval and keep one version per interval start. Fixed when the label is created.
schema_revisionuint64Revision of the definition. Every published change of the definition or of the label's constraints advances it; a published revision never changes.
candidateLabelCandidateA definition published but not yet in force: the stored nodes are being proved against it. The fields above stay the rules in force until the proof puts it in force; every write meanwhile must satisfy both. Unset when no proof is running.
kindLabelKindWhether the label is a node's type or an auxiliary label. Fixed when the label is created.
impliesstring[]For a type label, the labels every node of the type carries with it, as declared, sorted: the server writes them, transitively, on each node. Empty for an auxiliary label. Fixed when the label is created.

LabelCandidate ​

A label definition published and being proved over the stored nodes.

FieldTypeDescription
propertiesPropertyDefinition[]Stored properties it declares, by name.
computed_propertiesComputedPropertyDefinition[]Computed properties it declares, by name.
schema_modeSchemaModeHow it validates and stores properties.
operationuint64The operation proving it: awaited with AwaitSchema, cancelled with CancelIndexBuild.
impliesLabelCandidateImpliesThe labels the type implies once the candidate is in force; absent when the candidate leaves them as they are. Until then the label lookup and every index covering an affected label are reconciled to the new set in the background, and the implications in force still apply.

LabelCandidateImplies ​

The implied labels a candidate puts in force, wrapped so that "no change" (absent) and "implies nothing" (present and empty) are told apart.

FieldTypeDescription
labelsstring[]Label names, sorted, without repeats.

LabelDeclaration ​

A label definition in a PublishSchema request.

FieldTypeDescription
namestringLabel name, for example "User". Case-sensitive. At most once per request.
propertiesPropertyDefinition[]Stored properties. Names are unique within the declaration.
computed_propertiesComputedPropertyDefinition[]Computed properties. Names are unique and distinct from the stored ones.
schema_modeSchemaModeHow the label validates and stores properties.
temporalboolWhether nodes of the label are bitemporal. Fixed when the label is created.
expected_revisionuint64Unset: create the label when absent, keep it when its definition is equal, refuse the request when it differs. Set: change the definition to this one, provided it is at this revision, the one the client read it at; an absent label or another revision refuses the request.
kindLabelKindAs CreateLabelRequest.kind. A change of an existing label's kind refuses the request.
impliesstring[]As CreateLabelRequest.implies; the labels may be declared by the same request. A change of an existing label's implied labels refuses the request.

ListConstraintsRequest ​

No fields.

ListConstraintsResponse ​

FieldTypeDescription
constraintsConstraint[]Every constraint, ordered by name.

ListEdgeTypesRequest ​

No fields.

ListEdgeTypesResponse ​

FieldTypeDescription
edge_typesEdgeType[]Every edge type, ordered by name.

ListIndexBuildRepairsRequest ​

FieldTypeDescription
operationuint64The build whose repairs to list. Required: an absent operation is refused, never read as operation 0.

ListIndexBuildRepairsResponse ​

FieldTypeDescription
repairsIndexBuildRepair[]Every repair the build committed, ordered by node.

ListIndexBuildsRequest ​

No fields.

ListIndexBuildsResponse ​

FieldTypeDescription
buildsIndexBuild[]Every build, ordered by operation.

ListIndexChecksRequest ​

No fields.

ListIndexChecksResponse ​

FieldTypeDescription
checksIndexCheck[]Every generation with an integrity record, ordered by operation.

ListLabelsRequest ​

No fields.

ListLabelsResponse ​

FieldTypeDescription
labelsLabel[]Every label, ordered by name.

MultiVector ​

An ordered set of equal-width vectors representing one item, as produced by late-interaction retrieval models (ColBERT v2, MaxSim) where a document is several token-level embeddings rather than one pooled vector.

Every row carries the same number of dimensions; the sender enforces that invariant, so a receiver may read rows[0] for the width.

FieldTypeDescription
rowsVector[]—

OperationReadiness ​

One operation after a wait.

FieldTypeDescription
operationuint64The operation.
stateSchemaReadinessStateWhere it stands.
failurestringWhy it failed, for FAILED; empty otherwise.

OperationRef ​

A reference to one client operation: what a client persists before sending a write and sends again with every retry of it, on any connection and to any member.

FieldTypeDescription
issuerbytesThe logical client: 16 bytes the client chooses once and keeps across its restarts (a random value, or a digest of a stable application identity). Independent clients use different issuers; a connection, session or server is not an issuer.
incarnationuint64The issuer's incarnation the number belongs to, from EnrollIssuerResponse.
sequenceuint64The operation's number within the incarnation, allocated by the client: starting at EnrollIssuerResponse.next_sequence, each new write takes the next number, and a retry of a write keeps its number. Numbers are an identity, not an execution order: writes with different numbers may run concurrently and complete in any order.
deploymentbytesThe deployment that enrolled the incarnation, 16 bytes, from EnrollIssuerResponse.deployment. A server of another deployment refuses the reference with INVALID_ARGUMENT, reason FOREIGN_OPERATION, rather than admit it as a new operation.

Path ​

A graph path: the alternating node/relationship sequence produced by shortestPath(...) and by a variable-length MATCH p = (a)-[*]->(b).

rels has exactly one fewer entry than nodes on a non-empty path, and the n-th hop connects nodes[n] to nodes[n+1]. An empty path (a single node, zero hops) carries one node and no relationships.

FieldTypeDescription
nodesuint64[]Node ids along the path, start to end.
relsPathRel[]Relationship hops, in the same order.

PathRel ​

One relationship hop inside a Path: its type and endpoint node ids. Relationship properties are not carried; fetch them by endpoint pair when they are needed.

FieldTypeDescription
edge_typestring—
sourceuint64—
targetuint64—

PropertyDefinition ​

A stored property of a label or edge type. Carries the type facts of one property only; whether its values are unique is a constraint, listed by ListConstraints.

FieldTypeDescription
namestringProperty name, unique within the label or edge type. Case-sensitive.
typePropertyTypeDeclared type of the property's values. Required.
requiredboolWhether every record must carry a non-null value. A write without one is refused.
default_valuePropertyValueValue a record reads when it does not carry the property. Unset: no default, and a missing property reads as null.

PropertyType ​

The declared type of a stored property.

FieldTypeDescription
scalarScalarTypeA type without parameters.
vectorVectorTypeA dense vector with its dimensions and metric.
arrayArrayTypeAn array of elements of one type.

PublishSchemaRequest ​

FieldTypeDescription
labelsLabelDeclaration[]Label definitions.
edge_typesEdgeTypeDeclaration[]Edge type definitions.
constraintsConstraintDeclaration[]Constraints. The request carries at most 4096 declarations in all; a larger one is refused, never split.
operationOperationRefThe client operation the publication is, so it takes effect at most once however it is retried: a retry after a lost reply of one that committed is refused with FAILED_PRECONDITION, reason OPERATION_SETTLED, naming its outcome. Unset: no operation identity. A request that changes nothing records nothing under it.

PublishSchemaResponse ​

FieldTypeDescription
committedboolWhether a catalog change was committed. False when every declaration was already in place.
objectsPublishedSchemaObject[]Every declared object: labels, then edge types, then constraints, each in request order.

PublishedSchemaObject ​

One declared object after a publication.

FieldTypeDescription
kindSchemaObjectKindWhat kind of object it is.
namestringIts name; for a constraint declared without one, the derived name.
dispositionPublicationDispositionWhat the publication did with it.
revisionuint64Its revision: a definition's own, or for a constraint the revision of its label's definition holding it. The one to name in expected_revision to change a definition.
constraint_stateConstraintStateFor a constraint, where it is in its life; UNSPECIFIED for a definition.
operationuint64The background work putting the object in force: for a label, and for a NOT_NULL or PROPERTY_TYPE constraint, the proof over the stored nodes (one operation for every label the publication changes); for a UNIQUE or NODE_KEY constraint, its index build. Unset when it is in force already. Awaited with AwaitSchema; kept across a restart or a change of leader.

ReindexRequest ​

FieldTypeDescription
waitDurationHow long to wait for the build before answering; the build goes on either way. Unset or zero: answer once it is admitted.
index_iduint64The index's identity.
index_namestringThe name bound to the index now. A name that looks like a number is a name.

Timestamp ​

An instant on the time axis of a TIMESTAMP property.

FieldTypeDescription
unix_microsint64Microseconds since the Unix epoch (1970-01-01T00:00:00Z), signed: an instant before the epoch is negative. Microseconds are the database's own resolution, so the value round-trips exactly; a client converts it to its native type (a nanosecond type reaches it losslessly).

VectorType ​

A dense vector type.

FieldTypeDescription
dimensionsuint32Number of coordinates every value must have, from 1 to 65536. Zero declares no fixed length: values of any length are accepted, and a vector index takes its dimensions from its own definition.
metricDistanceMetricDistance metric the property is compared by. UNSPECIFIED means COSINE.

Enums ​

ComputedType ​

The kind of COMPUTED property.

ValueNumberDescription
COMPUTED_TYPE_UNSPECIFIED0Not a kind. Refused.
COMPUTED_TYPE_TTL1The node, or part of it, is deleted once duration_secs has elapsed since the anchor_field timestamp; scope says which part.
COMPUTED_TYPE_DECAY2Value interpolated from initial to target over duration_secs, evaluated when read: initial + (target - initial) * formula(elapsed).
COMPUTED_TYPE_VECTOR_DECAY3Multiplier in [0, 1] that a vector similarity score is scaled by when read, from the formula over the time elapsed since anchor_field.

ConstraintKind ​

What a constraint requires of the properties it names.

ValueNumberDescription
CONSTRAINT_KIND_UNSPECIFIED0Not a kind. Refused.
CONSTRAINT_KIND_UNIQUE1No two nodes of the label share the values of the properties. A node missing any of them is not constrained.
CONSTRAINT_KIND_NOT_NULL2The one named property is present and not null on every node.
CONSTRAINT_KIND_NODE_KEY3Every named property is present and not null, and no two nodes share their values.
CONSTRAINT_KIND_PROPERTY_TYPE4A present, non-null value of the one named property has the constraint's property_type.

ConstraintState ​

Where a constraint is in its life.

ValueNumberDescription
CONSTRAINT_STATE_UNSPECIFIED0Never sent.
CONSTRAINT_STATE_VALIDATING1Enforced on every write while its index is still being checked against the stored data: the guarantee over data stored before it is not established yet. The check is the index build named in Constraint.build; its outcome makes the constraint ACTIVE or withdraws it. A build a restart or a change of leader interrupted is taken up again.
CONSTRAINT_STATE_ACTIVE2Checked against the stored data and enforced on every write.

DecayFormulaType ​

Decay formula of a DECAY or VECTOR_DECAY computed property. Every formula maps normalized time t in [0, 1] to a weight in [0, 1].

ValueNumberDescription
DECAY_FORMULA_TYPE_UNSPECIFIED0LINEAR.
DECAY_FORMULA_TYPE_LINEAR1f(t) = max(0, 1 - t): constant rate, zero at the end of the duration.
DECAY_FORMULA_TYPE_EXPONENTIAL2f(t) = e^(-lambda * t). Requires lambda.
DECAY_FORMULA_TYPE_POWER_LAW3f(t) = (1 + t / tau)^(-alpha): fast early decay with a long tail. Requires tau and alpha.
DECAY_FORMULA_TYPE_STEP4f(t) = 1 while t < 1, then 0.

DistanceMetric ​

ValueNumberDescription
DISTANCE_METRIC_UNSPECIFIED0—
DISTANCE_METRIC_COSINE1—
DISTANCE_METRIC_L22—
DISTANCE_METRIC_DOT3—
DISTANCE_METRIC_L14—

IndexBuildPhase ​

Where a RUNNING build stands on the executor holding it.

ValueNumberDescription
INDEX_BUILD_PHASE_UNSPECIFIED0Not running on an executor of this server.
INDEX_BUILD_PHASE_AWAITING_SEAT1Waiting for a seat: as many builds as the server runs at once (index_build_max_running) are filling indexes.
INDEX_BUILD_PHASE_AWAITING_OLDER_TRANSACTIONS2Waiting for the transactions opened before the index existed to end.
INDEX_BUILD_PHASE_INDEXING3Filling the index.

IndexBuildState ​

Where an index build stands.

ValueNumberDescription
INDEX_BUILD_STATE_UNSPECIFIED0Never sent.
INDEX_BUILD_STATE_ACCEPTED1Admitted with its index; no executor has taken it yet.
INDEX_BUILD_STATE_RUNNING2An executor is filling the index; phase says where.
INDEX_BUILD_STATE_PUBLISHED3The index was published ready, and a constraint owning it made ACTIVE.
INDEX_BUILD_STATE_FAILED4The stored data refused the index; failure says why. A new index was withdrawn with the constraint owning it; a rebuilt one is kept, failed.
INDEX_BUILD_STATE_CANCELLED5Cancelled before it had an outcome; the same withdrawal as FAILED.

IndexCheckState ​

Where an index check stands.

ValueNumberDescription
INDEX_CHECK_STATE_UNSPECIFIED0Never sent.
INDEX_CHECK_STATE_ACCEPTED1Admitted; no executor has taken it yet.
INDEX_CHECK_STATE_RUNNING2An executor is checking; phase says which half.
INDEX_CHECK_STATE_DONE3The check reached its end; integrity says what it found.
INDEX_CHECK_STATE_FAILED4The check could not finish; failure says why.
INDEX_CHECK_STATE_CANCELLED5Cancelled before its end. Repairs it committed stay.

IndexIntegrity ​

What is known about whether an index generation's entries agree with the records they are derived from. Separate from its build state.

ValueNumberDescription
INDEX_INTEGRITY_UNSPECIFIED0Never sent.
INDEX_INTEGRITY_UNCHECKED1Nothing was found wrong and no check has completed: the index serves as its build state says.
INDEX_INTEGRITY_SUSPECT2An entry was found disagreeing with its record. Lookups in the index answer from the records, and its unique values are proved free from them, until a check verifies or rebuilds it.
INDEX_INTEGRITY_VERIFIED3A complete check found every entry and every record in agreement.

LabelKind ​

What a label is to the nodes carrying it. A node carries exactly one type label, found by kind whatever order its labels are written in, besides the labels that type implies and any auxiliary labels.

ValueNumberDescription
LABEL_KIND_UNSPECIFIED0TYPE.
LABEL_KIND_TYPE1The node's type: its definition gives the node's schema, mode and placement. A label used without a definition is a FLEXIBLE type label.
LABEL_KIND_AUXILIARY2Classifies nodes (scope, role, tag). Declares no properties, is not temporal and is never a node's only label.

PublicationDisposition ​

What a publication did with one declared object.

ValueNumberDescription
PUBLICATION_DISPOSITION_UNSPECIFIED0Never sent.
PUBLICATION_DISPOSITION_CREATED1It was absent and is created.
PUBLICATION_DISPOSITION_RETAINED2It was in place, equal to the declaration, and is kept unchanged.
PUBLICATION_DISPOSITION_CHANGED3It was changed as the declaration asked.

ScalarType ​

The scalar property types: types that take no parameters.

ValueNumberDescription
SCALAR_TYPE_UNSPECIFIED0Not a type. Refused when a type is required.
SCALAR_TYPE_STRING1UTF-8 text.
SCALAR_TYPE_INT642Signed 64-bit integer.
SCALAR_TYPE_FLOAT643IEEE 754 binary64 floating point number.
SCALAR_TYPE_BOOL4Boolean.
SCALAR_TYPE_TIMESTAMP5Point in time.
SCALAR_TYPE_BLOB6Large binary object stored apart from the record and read by reference.
SCALAR_TYPE_BINARY7Binary value stored inline in the record.
SCALAR_TYPE_MAP8Map of string keys to values.
SCALAR_TYPE_GEO9Geographic point or shape.
SCALAR_TYPE_DOCUMENT10Arbitrary nested document; its content is not type-checked.

SchemaMode ​

How a label validates and stores the properties of its nodes.

ValueNumberDescription
SCHEMA_MODE_UNSPECIFIED0STRICT.
SCHEMA_MODE_STRICT1Only declared properties are accepted; a write with any other is refused. Property names are interned, the most compact form.
SCHEMA_MODE_VALIDATED2Declared properties are type-checked and interned; other properties are accepted unchecked and stored by name.
SCHEMA_MODE_FLEXIBLE3No property is checked against the definition beyond requiredness and defaults; every property is stored by name.

SchemaObjectKind ​

The kind of a schema object.

ValueNumberDescription
SCHEMA_OBJECT_KIND_UNSPECIFIED0Never sent.
SCHEMA_OBJECT_KIND_LABEL1A node label definition.
SCHEMA_OBJECT_KIND_EDGE_TYPE2An edge type definition.
SCHEMA_OBJECT_KIND_CONSTRAINT3A named constraint.

SchemaReadinessState ​

Where background schema work stands.

ValueNumberDescription
SCHEMA_READINESS_STATE_UNSPECIFIED0Never sent.
SCHEMA_READINESS_STATE_READY1Its object is in force over the stored data.
SCHEMA_READINESS_STATE_PENDING2Still running; the rules in force before still are.
SCHEMA_READINESS_STATE_FAILED3Ended without putting its object in force: a definition is withdrawn with the rules before kept, a constraint withdrawn with its index. Nothing else the publication published is undone. One operation proves every label definition (and the presence and type constraints) a publication changes, each settled on its own: FAILED when any of them was refused, failure naming those, the others in force.

TtlScopeType ​

What a TTL computed property deletes when it expires.

ValueNumberDescription
TTL_SCOPE_TYPE_UNSPECIFIED0NODE.
TTL_SCOPE_TYPE_FIELD1Only the anchor_field property; the node remains.
TTL_SCOPE_TYPE_SUBTREE2Only the DOCUMENT property named by target_field; the anchor_field timestamp remains.
TTL_SCOPE_TYPE_NODE3The whole node with all its edges.