(context: Context)
| 21 | import { GraphQLSchemaComposerFeature } from "~/features/GraphQLSchemaBuilder/feature.js"; |
| 22 | |
| 23 | export 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 | |
| 32 | export const createGraphQLSchema = async (context: Context) => { |
| 33 | GraphQLSchemaComposerFeature.register(context.container); |
no test coverage detected