UNPKG

@graphql-mesh/fusion-composition

Version:

Basic composition utility for Fusion spec

22 lines (21 loc) 731 B
import type { GraphQLSchema } from 'graphql'; import type { SubgraphConfig } from '../compose.js'; export interface PrefixTransformConfig { /** * The prefix to apply to the schema types. By default it's the API name. */ value?: string; /** * List of ignored types */ ignore?: string[]; /** * Changes root types and changes the field names (default: false) */ includeRootOperations?: boolean; /** * Changes types (default: true) */ includeTypes?: boolean; } export declare function createPrefixTransform({ value, ignore, includeRootOperations, includeTypes, }?: PrefixTransformConfig): (schema: GraphQLSchema, subgraphConfig: SubgraphConfig) => GraphQLSchema;