@graphql-tools/stitching-directives
Version:
A set of utils for faster development of GraphQL tools
20 lines (19 loc) • 944 B
text/typescript
import { GraphQLDirective, GraphQLSchema } from 'graphql';
import { SubschemaConfig } from '@graphql-tools/delegate';
import { StitchingDirectivesOptions } from './types.cjs';
export interface StitchingDirectivesResult {
keyDirectiveTypeDefs: string;
computedDirectiveTypeDefs: string;
mergeDirectiveTypeDefs: string;
canonicalDirectiveTypeDefs: string;
stitchingDirectivesTypeDefs: string;
allStitchingDirectivesTypeDefs: string;
stitchingDirectivesValidator: (schema: GraphQLSchema) => GraphQLSchema;
stitchingDirectivesTransformer: (subschemaConfig: SubschemaConfig) => SubschemaConfig;
keyDirective: GraphQLDirective;
computedDirective: GraphQLDirective;
mergeDirective: GraphQLDirective;
canonicalDirective: GraphQLDirective;
allStitchingDirectives: Array<GraphQLDirective>;
}
export declare function stitchingDirectives(options?: StitchingDirectivesOptions): StitchingDirectivesResult;