UniqueInputFieldNamesRule.d.ts 337 B

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