GraphQL Schema Composer (GraphQLSchemaBuilder/GraphQLSchemaComposer.ts)

webiny-js · packages/api-graphql/src/features/GraphQLSchemaBuilder/GraphQLSchemaComposer.ts · typescript · MIT
database, integration, lang:typescript, tag:knn-classified, tag:dependency-injection

Composes and caches modular GraphQL schemas using dependency injection in Webiny. Reuse to build extensible API schemas.

// Source: https://github.com/webiny/webiny-js | License: MIT | Copyright Webiny Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { createHash } from "node:crypto";
import { Container } from "@webiny/di";
import { RequestContainer } from "@webiny/event-handler-core";
import { GraphQLSchemaComposer as Abstraction } from "./abstractions.js";
import { GraphQLSchemaFactory, CoreGraphQLSchemaFactory } from "~/graphql/abstractions.js";
import { GraphQLSchemaKeyVerification } from "~/engine/abstractions.js";
import { createSchemaCacheKey } from "~/engine/createSchemaCacheKey.js";
import { GraphQLSchemaBuilder } from "./GraphQLSchemaBuilder.js";
import type { IGraphQLSchema } from "~/graphql/abstractions.public.js";

type SchemaFactory = CoreGraphQLSchemaFactory.Interfac

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key