Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.syntaxError

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.syntaxError
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { syntaxError } = GraphQL;

Produces a GraphQLError representing a syntax error, containing useful descriptive information about the syntax error's position in the source.

Parameters

source: Source
position: number
description: string