Skip to content

generateFullSchemaQl

generateFullSchemaQl(definables, method): string

Defined in: schema/generator.ts:45

Generates the full SurrealQL schema for all provided definable entities (tables and indexes).

Definable[]

An array of Definable entities (model classes and index definitions).

SchemaApplicationMethod = "error"

The method to use for schema application if a table already exists.

string

A string containing the complete SurrealQL schema.