backend/lib/seed/helpers/Context.ts
2025-05-14 21:45:16 +02:00

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(),
},
};
};