flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
27
VISUALIZACION/node_modules/graphql/utilities/findDeprecatedUsages.js
generated
vendored
Executable file
27
VISUALIZACION/node_modules/graphql/utilities/findDeprecatedUsages.js
generated
vendored
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
"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]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue