@graphql-mesh/fusion-composition
Version:
Basic composition utility for Fusion spec
13 lines (12 loc) • 815 B
text/typescript
import type { DocumentNode, GraphQLOutputType, GraphQLSchema, GraphQLType } from 'graphql';
import type { SubgraphTransform } from './compose.cjs';
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.cjs';
export * from './transforms/naming-convention.cjs';
export * from './transforms/prefix.cjs';
export * from './transforms/rename.cjs';
export * from './transforms/encapsulate.cjs';
export * from './transforms/prune.cjs';
export * from './transforms/hoist-field.cjs';
export * from './transforms/federation.cjs';