Latest
function doTypesOverlap
import { doTypesOverlap } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/utilities/index.d.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.

Parameters

schema: GraphQLSchema
typeA: GraphQLCompositeType
typeB: GraphQLCompositeType

Returns

boolean