Skip to main content
Latest
function NoUnusedFragmentsRule
import { NoUnusedFragmentsRule } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.ts";

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.

See https://spec.graphql.org/draft/#sec-Fragments-Must-Be-Used

Parameters

context: ASTValidationContext