@graphql-tools/utils
Version:
Common package containing utils and types for GraphQL tools
10 lines (9 loc) • 387 B
TypeScript
import { DocumentNode } from 'graphql';
import { DirectiveUsage } from './types.js';
export type ArgumentToDirectives = {
[argumentName: string]: DirectiveUsage[];
};
export type TypeAndFieldToArgumentDirectives = {
[typeAndField: string]: ArgumentToDirectives;
};
export declare function getArgumentsWithDirectives(documentNode: DocumentNode): TypeAndFieldToArgumentDirectives;