Skip to main content

Documentation Index

Fetch the complete documentation index at: https://deepkit-graphql.js.org/llms.txt

Use this file to discover all available pages before exploring further.

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