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

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

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

Configuration options to control parser behavior

Properties

optional
noLocation: boolean

By default, the parser creates AST nodes that know the location in the source that they correspond to. This configuration flag disables that behavior for performance or testing.

optional
allowLegacySDLEmptyFields: boolean

If enabled, the parser will parse empty fields sets in the Schema Definition Language. Otherwise, the parser will follow the current specification.

This option is provided to ease adoption of the final SDL specification and will be removed in v16.

optional
allowLegacySDLImplementsInterfaces: boolean

If enabled, the parser will parse implemented interfaces with no & character between each interface. Otherwise, the parser will follow the current specification.

This option is provided to ease adoption of the final SDL specification and will be removed in v16.

optional
experimentalFragmentVariables: boolean

EXPERIMENTAL:

If enabled, the parser will understand and parse variable definitions contained in a fragment definition. They'll be represented in the variableDefinitions field of the FragmentDefinitionNode.

The syntax is identical to normal, query-defined variables. For example:

fragment A($var: Boolean = false) on T { ... }

Note: this feature is experimental and may change or be removed in the future.