Initialisation
Added the packages and files for the backend server
This commit is contained in:
19
node_modules/graphql/error/syntaxError.js
generated
vendored
Normal file
19
node_modules/graphql/error/syntaxError.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'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: ${description}`, {
|
||||
source,
|
||||
positions: [position],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user