@graphql-mesh/fusion-composition
Version:
Basic composition utility for Fusion spec
13 lines (12 loc) • 806 B
TypeScript
import type { DocumentNode, GraphQLOutputType, GraphQLSchema, GraphQLType } from 'graphql';
import type { SubgraphTransform } from './compose.js';
export declare function createTypeReplaceTransform(replacerFn: (typeName: string, fieldName: string, existingType: GraphQLType) => string | GraphQLOutputType | void): SubgraphTransform;
export declare function createExtendTransform(typeDefs: string | DocumentNode): (schema: GraphQLSchema) => GraphQLSchema;
export * from './transforms/filter-schema.js';
export * from './transforms/naming-convention.js';
export * from './transforms/prefix.js';
export * from './transforms/rename.js';
export * from './transforms/encapsulate.js';
export * from './transforms/prune.js';
export * from './transforms/hoist-field.js';
export * from './transforms/federation.js';