@accounter/server
Version:
Accounter GraphQL server
19 lines (18 loc) • 597 B
TypeScript
import pg from 'pg';
import type { RawAuth } from './plugins/auth-plugin.js';
import type { Environment } from './shared/types/index.js';
declare global {
namespace GraphQLModules {
interface GlobalContext {
env: Environment;
rawAuth: RawAuth;
dbClientsToDispose?: {
dispose: () => Promise<void>;
}[];
}
}
}
export declare function createGraphQLApp(env: Environment, pool: pg.Pool): Promise<{
application: import("graphql-modules").Application;
transformedSchema: import("graphql").GraphQLSchema;
}>;