Deepkit GraphQL seamlessly integrates into any existing setup that supports a custom GraphQL schema and context.Here’s an example using Apollo Server:
Copy
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();