Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function FieldsOnCorrectTypeRule
import { FieldsOnCorrectTypeRule } from "https://deno.land/x/graphql_deno@v15.0.0/lib/validation/index.js";

Fields on correct type

A GraphQL document is only valid if all fields selected are defined by the parent type, or are an allowed meta field such as __typename.

Parameters

context