MCPcopy
hub / github.com/webiny/webiny-js / getSchemaPlugins

Function getSchemaPlugins

packages/handler-graphql/src/createGraphQLSchema.ts:23–30  ·  view source on GitHub ↗
(context: Context)

Source from the content-addressed store, hash-verified

21import { GraphQLSchemaComposerFeature } from "~/features/GraphQLSchemaBuilder/feature.js";
22
23export const getSchemaPlugins = (context: Context) => {
24 return context.plugins.byType<GraphQLSchemaPlugin>("graphql-schema").filter(pl => {
25 if (typeof pl.isApplicable === "function") {
26 return pl.isApplicable(context);
27 }
28 return true;
29 });
30};
31
32export const createGraphQLSchema = async (context: Context) => {
33 GraphQLSchemaComposerFeature.register(context.container);

Callers 2

createGraphQLSchemaFunction · 0.85
createCacheKeyFunction · 0.85

Calls 3

byTypeMethod · 0.80
filterMethod · 0.65
isApplicableMethod · 0.65

Tested by

no test coverage detected