UniqueFieldDefinitionNamesRule.d.ts 333 B

1234567891011
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. /**
  4. * Unique field definition names
  5. *
  6. * A GraphQL complex type is only valid if all its fields are uniquely named.
  7. */
  8. export function UniqueFieldDefinitionNamesRule(
  9. context: SDLValidationContext,
  10. ): ASTVisitor;