123456789101112131415161718192021222324252627 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.findDeprecatedUsages = findDeprecatedUsages;
- var _validate = require("../validation/validate.js");
- var _NoDeprecatedCustomRule = require("../validation/rules/custom/NoDeprecatedCustomRule.js");
- /**
- * A validation rule which reports deprecated usages.
- *
- * Returns a list of GraphQLError instances describing each deprecated use.
- *
- * @deprecated Please use `validate` with `NoDeprecatedCustomRule` instead:
- *
- * ```
- * import { validate, NoDeprecatedCustomRule } from 'graphql'
- *
- * const errors = validate(schema, document, [NoDeprecatedCustomRule])
- * ```
- */
- function findDeprecatedUsages(schema, ast) {
- return (0, _validate.validate)(schema, ast, [_NoDeprecatedCustomRule.NoDeprecatedCustomRule]);
- }
|