Member Junction
    Preparing search index...

    AppContext is the context object that is passed to all resolvers.

    type AppContext = {
        ClientIp?: string;
        dataSource: sql.ConnectionPool;
        dataSources: DataSourceInfo[];
        providers: ProviderInfo[];
        queryRunner?: sql.Request;
        userPayload: UserPayload;
    }
    Index

    Properties

    ClientIp?: string

    The caller's network address as Express resolved it (req.ip, which honours the app's trust proxy setting). Present for HTTP requests; absent on WebSocket (subscription) contexts. Used only to key abuse limits (e.g. realtime verification sends) — never as an identity.

    dataSource: sql.ConnectionPool

    The default and backwards compatible connection pool.

    dataSources: DataSourceInfo[]

    Array of connection pools that have additional information about their intended use e.g. Admin, Read-Write, Read-Only.

    providers: ProviderInfo[]

    Per-request DatabaseProviderBase instances

    queryRunner?: sql.Request
    userPayload: UserPayload