Member Junction
    Preparing search index...

    Configuration options for creating an MJ Server

    interface MJServerConfig {
        afterStart?: () => void | Promise<void>;
        beforeStart?: () => void | Promise<void>;
        configPath?: string;
        resolverPaths?: string[];
        restApiOptions?: Partial<
            {
                enabled?: boolean;
                excludeEntities?: string[];
                excludeSchemas?: string[];
                includeEntities?: string[];
                includeSchemas?: string[];
            },
        >;
    }
    Index

    Properties

    afterStart?: () => void | Promise<void>

    Hook that runs after the server starts

    beforeStart?: () => void | Promise<void>

    Hook that runs before the server starts

    configPath?: string

    Path to mj.config.cjs or other config file (optional - will auto-discover if not provided)

    resolverPaths?: string[]

    Additional resolver paths to include beyond the defaults

    ['./custom-resolvers/**/*Resolver.{js,ts}']
    
    restApiOptions?: Partial<
        {
            enabled?: boolean;
            excludeEntities?: string[];
            excludeSchemas?: string[];
            includeEntities?: string[];
            includeSchemas?: string[];
        },
    >

    Options for REST API configuration