Skip to main content

Module schema

Module schema 

Source
Expand description

Schema types (TableDefinition, FieldDefinition, PublicAccess). Schema types for Yeti table definitions.

Provides the struct definitions needed by the query, relationship, and routing modules. The full GraphQL parser (SchemaLoader) lives elsewhere.

Re-exports§

pub use access::Protocol;

Structs§

AccessConfig
@access directive — authorization axis.
AuditConfig
Audit configuration from @audit directive.
AuditEntry
A table-level audit entry emitted after successful CRUD operations.
CompositeIndexDef
Composite index definition (multi-field index).
DistributeConfig
Distribution topology from @distribute directive.
FieldDefinition
Field definition within a table.
FunctionSourceConfig
@source(function: "name", staleAfter:, swr:). Same freshness semantics as the url: arm; the difference is the populator — an in-component Rust function instead of an HTTP fetch.
HnswConfig
HNSW index configuration parameters.
RelationshipDefinition
Relationship configuration (Harper-compatible).
SchemaDiff
Result of comparing current schema against a stored fingerprint.
SchemaFingerprint
Stored schema fingerprint — persisted in RocksDB metadata.
SourceConfig
Bundled @source configuration.
StoreConfig
@store directive — storage-engine axis.
TableDefinition
Represents a table definition parsed from a GraphQL schema.
TableDefinitionBuilder
Builder for creating TableDefinition instances with a fluent API.
TableSourceConfig
@source(table: "OtherType", function:, propagateDeletes:, maxLag:). Continuous push-on-write subscription from another yeti table.
UrlSourceConfig
@source(url: "...", headers: { ... }, staleAfter:, swr:).

Enums§

AuditOp
Operations that can be audited.
DurabilityTier
Durability tier from @store(durability:).
IndexConfig
Index configuration for a field.
OpPolicy
Per-op policy in @access(roles:).
PublicAccess
Operations that can be declared publicly accessible via @access(public: [read, create, ...]).
RetentionClass
Named data-retention class from @store(class:).
SourceKind
Origin kind for @source. Sealed enum — SourceConfig carries exactly one of these.
VectorDistance
Distance metric for vector similarity search.

Functions§

graphql_to_json_type
Map GraphQL types to JSON schema types via the canonical scalar registry. Unknown (custom object) types fall back to "string".