13 lines
335 B
TypeScript
13 lines
335 B
TypeScript
import { ApolloContextLoadersOnly } from '@seed/interfaces/context';
|
|
import Loaders from '@src/__indexes/__loaders';
|
|
|
|
export const createContext = async (): Promise<ApolloContextLoadersOnly> => {
|
|
return {
|
|
event: {} as any,
|
|
context: {} as any,
|
|
ctx: {
|
|
loaders: new Loaders(),
|
|
},
|
|
};
|
|
};
|