UniqueArgumentNamesRule.d.ts 335 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Unique argument names
  5. *
  6. * A GraphQL field or directive is only valid if all supplied arguments are
  7. * uniquely named.
  8. */
  9. export function UniqueArgumentNamesRule(
  10. context: ASTValidationContext,
  11. ): ASTVisitor;