import { ApolloServer } from 'apollo-server';
import { schema } from './schema';
import { injectorContext } from './app';
await new ApolloServer({
schema,
context: () => {
const gqlInjectorContext = injectorContext.createChildScope('graphql');
// You can do whatever you want with the GraphQL injector context here
return {
injectorContext: gqlInjectorContext,
};
},
}).listen();