generateFullSchemaQl
generateFullSchemaQl(
definables
,method
):string
Defined in: schema/generator.ts:45
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”SchemaApplicationMethod
= "error"
The method to use for schema application if a table already exists.
Returns
Section titled “Returns”string
A string containing the complete SurrealQL schema.