mirror of
https://github.com/vale981/apollo-server
synced 2025-03-14 14:56:40 -04:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
import { KeyValueCache } from 'apollo-server-caching';
|
|
|
|
export interface DataSourceConfig<TContext> {
|
|
context: TContext;
|
|
cache: KeyValueCache;
|
|
}
|
|
|
|
export abstract class DataSource<TContext = any> {
|
|
initialize?(config: DataSourceConfig<TContext>): void;
|
|
}
|