Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.FragmentsOnCompositeTypesRule

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.FragmentsOnCompositeTypesRule
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { FragmentsOnCompositeTypesRule } = GraphQL;

Fragments on composite type

Fragments use a type condition to determine if they apply, since fragments can only be spread into a composite type (object, interface, or union), the type condition must also be a composite type.