ScalarLeafs.d.ts 516 B

1234567891011121314151617181920
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. export function noSubselectionAllowedMessage(
  4. fieldName: string,
  5. type: string,
  6. ): string;
  7. export function requiredSubselectionMessage(
  8. fieldName: string,
  9. type: string,
  10. ): string;
  11. /**
  12. * Scalar leafs
  13. *
  14. * A GraphQL document is valid only if all leaf fields (fields without
  15. * sub selections) are of scalar or enum types.
  16. */
  17. export function ScalarLeafs(context: ValidationContext): ASTVisitor;