prorm API Reference
    Preparing search index...

    Type Alias MaterializedViewInput

    MaterializedViewInput:
        | MaterializedViewOptions & QueryInterfaceOptions
        | Omit<MaterializedViewOptions, "query"> & QueryInterfaceOptions & {
            definition: ViewDefinition;
            query?: never;
        }

    Options accepted by QueryInterface.createMaterializedView.

    Either describe the view with a structured definition, or pass a raw query string. The raw form is kept so existing callers keep working; new code should use definition so the SELECT is built for the target dialect instead of written by hand.