UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

11 lines (9 loc) 381 B
import { ASTVisitor } from '../../language/visitor'; import { ValidationContext } from '../ValidationContext'; /** * No unused fragments * * A GraphQL document is only valid if all fragment definitions are spread * within operations, or spread within other fragments spread within operations. */ export function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor;