Swap-Aggregator-Subgraph/node_modules/graphql/error/syntaxError.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

17 lines
491 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.syntaxError = syntaxError;
var _GraphQLError = require("./GraphQLError.js");
/**
* Produces a GraphQLError representing a syntax error, containing useful
* descriptive information about the syntax error's position in the source.
*/
function syntaxError(source, position, description) {
return new _GraphQLError.GraphQLError("Syntax Error: ".concat(description), undefined, source, [position]);
}