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.
Parameters
schema: GraphQLSchema
ast: DocumentNode
Returns
ReadonlyArray<GraphQLError>