Spaces:
Paused
Paused
Download node_modules/graphql/error/syntaxError.mjs from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/error/syntaxError.mjs
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/error/syntaxError.mjs
-
curl -L -o syntaxError.mjs https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/error/syntaxError.mjs
378 Bytes
| import { GraphQLError } from './GraphQLError.mjs'; | |
| /** | |
| * Produces a GraphQLError representing a syntax error, containing useful | |
| * descriptive information about the syntax error's position in the source. | |
| */ | |
| export function syntaxError(source, position, description) { | |
| return new GraphQLError(`Syntax Error: ${description}`, { | |
| source, | |
| positions: [position], | |
| }); | |
| } | |