@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
38 lines • 1.11 kB
text/typescript
import { DirectiveNode } from 'graphql';
import { FederationVersion } from '../../specifications/federation.cjs';
import type { ArgumentKind, Directive } from '../../subgraph/state.cjs';
import { MapByGraph, TypeBuilder } from './common.cjs';
export declare function directiveBuilder(): TypeBuilder<Directive, DirectiveState>;
export type DirectiveState = {
kind: 'directive';
name: string;
byGraph: MapByGraph<DirectiveStateInGraph>;
locations: Set<string>;
repeatable: boolean;
args: Map<string, DirectiveArgState>;
};
type DirectiveStateInGraph = {
locations: Set<string>;
repeatable: boolean;
version: FederationVersion;
};
export type DirectiveArgState = {
name: string;
type: string;
kind: ArgumentKind;
tags: Set<string>;
inaccessible: boolean;
defaultValue?: string;
byGraph: MapByGraph<ArgStateInGraph>;
ast: {
directives: DirectiveNode[];
};
};
type ArgStateInGraph = {
type: string;
kind: ArgumentKind;
defaultValue?: string;
version: FederationVersion;
};
export {};
//# sourceMappingURL=directive.d.ts.map