UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

10 lines (9 loc) 348 B
import type { ASTVisitor } from '../../language/visitor'; import type { ValidationContext } from '../ValidationContext'; /** * Scalar leafs * * A GraphQL document is valid only if all leaf fields (fields without * sub selections) are of scalar or enum types. */ export declare function ScalarLeafsRule(context: ValidationContext): ASTVisitor;