UNPKG

@graphql-mesh/transform-federation

Version:
12 lines (11 loc) 543 B
import { GraphQLSchema } from 'graphql'; import { MeshTransform, YamlConfig, MeshTransformOptions } from '@graphql-mesh/types'; import { SubschemaConfig } from '@graphql-tools/delegate'; export default class FederationTransform implements MeshTransform { private apiName; private config; private baseDir; private importFn; constructor({ apiName, baseDir, config, importFn }: MeshTransformOptions<YamlConfig.Transform['federation']>); transformSchema(schema: GraphQLSchema, rawSource: SubschemaConfig): GraphQLSchema; }