Latest
interface ParseOptions
import { type ParseOptions } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/language/index.d.ts";

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.