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

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

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.findDeprecatedUsages
Deprecated
Deprecated

Please use validate with NoDeprecatedCustomRule instead:

import { validate, NoDeprecatedCustomRule } from 'graphql'

const errors = validate(schema, document, [NoDeprecatedCustomRule])
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { findDeprecatedUsages } = GraphQL;

A validation rule which reports deprecated usages.

Returns a list of GraphQLError instances describing each deprecated use.

Returns

ReadonlyArray<GraphQLError>