Interface VlodiaConfig

interface VlodiaConfig {
    database: DatabaseConfig;
    entities: Function[];
    cache?: CacheConfig;
    logging?: LoggingConfig;
    migrations?: {
        path: string;
        tableName: string;
    };
    realtime?: {
        enabled: boolean;
        port: number;
        path: string;
        cors: {
            origin: string[];
            credentials: boolean;
        };
        heartbeat: {
            interval: number;
            timeout: number;
        };
    };
    graphql?: {
        enabled: boolean;
        path: string;
        playground: boolean;
        introspection: boolean;
        subscriptions: boolean;
        cors: {
            origin: string[];
            credentials: boolean;
        };
    };
    tenancy?: {
        enabled: boolean;
        defaultTenant?: string;
    };
}

Properties

database: DatabaseConfig
entities: Function[]
cache?: CacheConfig
logging?: LoggingConfig
migrations?: {
    path: string;
    tableName: string;
}

Type declaration

  • path: string
  • tableName: string
realtime?: {
    enabled: boolean;
    port: number;
    path: string;
    cors: {
        origin: string[];
        credentials: boolean;
    };
    heartbeat: {
        interval: number;
        timeout: number;
    };
}

Type declaration

  • enabled: boolean
  • port: number
  • path: string
  • cors: {
        origin: string[];
        credentials: boolean;
    }
    • origin: string[]
    • credentials: boolean
  • heartbeat: {
        interval: number;
        timeout: number;
    }
    • interval: number
    • timeout: number
graphql?: {
    enabled: boolean;
    path: string;
    playground: boolean;
    introspection: boolean;
    subscriptions: boolean;
    cors: {
        origin: string[];
        credentials: boolean;
    };
}

Type declaration

  • enabled: boolean
  • path: string
  • playground: boolean
  • introspection: boolean
  • subscriptions: boolean
  • cors: {
        origin: string[];
        credentials: boolean;
    }
    • origin: string[]
    • credentials: boolean
tenancy?: {
    enabled: boolean;
    defaultTenant?: string;
}

Type declaration

  • enabled: boolean
  • Optional defaultTenant?: string