• Parameters

    Returns Store

    Remarks

    Global port to event store

    Example

    Bootstrapping a service with a Postgres store adapter

    void bootstrap(async (): Promise<void> => {
    store(PostgresStore("hotel"));

    // Register artifacts, build the app
    const express = app(new ExpressApp())
    .with(Room)
    .build();

    // Start listing to incoming messages
    await app().listen();
    });

Generated using TypeDoc