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

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

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

Provided a type and a super type, return true if the first type is either equal or a subset of the second super type (covariant).

Parameters

maybeSubType: GraphQLType
superType: GraphQLType

Returns

boolean