ScalarLeafsRule.d.ts 331 B

12345678910
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. /**
  4. * Scalar leafs
  5. *
  6. * A GraphQL document is valid only if all leaf fields (fields without
  7. * sub selections) are of scalar or enum types.
  8. */
  9. export function ScalarLeafsRule(context: ValidationContext): ASTVisitor;