@graphql-tools/utils
Version:
Common package containing utils and types for GraphQL tools
11 lines (10 loc) • 363 B
TypeScript
import { DocumentNode } from 'graphql';
import { DirectiveUsage } from './types.js';
export type TypeAndFieldToDirectives = {
[typeAndField: string]: DirectiveUsage[];
};
interface Options {
includeInputTypes?: boolean;
}
export declare function getFieldsWithDirectives(documentNode: DocumentNode, options?: Options): TypeAndFieldToDirectives;
export {};