Skip to main content
Module

x/graphql_tools/deps.ts>doTypesOverlap

[DEPRECATED] 🦕 Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library
Latest
function doTypesOverlap
import { doTypesOverlap } from "https://deno.land/x/graphql_tools@0.0.4-deprecated/deps.ts";

Provided two composite types, determine if they "overlap". Two composite types overlap when the Sets of possible concrete types for each intersect.

This is often used to determine if a fragment of a given type could possibly be visited in a context of another type.

This function is commutative.

Returns

boolean