generateFullSchemaQl
generateFullSchemaQl(
definables,method):string
Defined in: schema/generator.ts:46
Generates the full SurrealQL schema for all provided definable entities (tables and indexes).
Parameters
Section titled “Parameters”definables
Section titled “definables”Definable[]
An array of Definable entities (model classes and index definitions).
method
Section titled “method”The method to use for schema application if a table already exists.
"IF NOT EXISTS" | "OVERWRITE" | "error"
Returns
Section titled “Returns”string
A string containing the complete SurrealQL schema.