snowballtools-base/packages/backend/src/config.ts
neerajvijay1997 e4c099f8c3 Refactor database setup and add user context to GQL requests (#17)
* Add context to each request

* Implement get user db query

* Move constants to a separate file

* Refactor database init method
2024-02-01 11:37:57 +05:30

15 lines
222 B
TypeScript

export interface ServerConfig {
host: string;
port: number;
gqlPath?: string;
}
export interface DatabaseConfig {
dbPath: string;
}
export interface Config {
server: ServerConfig;
database: DatabaseConfig;
}