@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
10 lines • 531 B
text/typescript
import { GraphQLError } from 'graphql';
import type { SubgraphState } from '../../subgraph/state.cjs';
export type SupergraphValidationContext = ReturnType<typeof createSupergraphValidationContext>;
export declare function createSupergraphValidationContext(subgraphStates: Map<string, SubgraphState>): {
subgraphStates: Map<string, SubgraphState>;
graphIdToName(id: string): string;
reportError(error: GraphQLError): void;
collectReportedErrors(): GraphQLError[];
};
//# sourceMappingURL=validation-context.d.ts.map