ParseOptions
Configuration options to control parser behavior
interface ParseOptions {
allowLegacyFragmentVariables?: boolean;
maxTokens?: number | undefined;
noLocation?: boolean;
}§Properties
§
maxTokens?: number | undefined
[src]Parser CPU and memory usage is linear to the number of tokens in a document however in extreme cases it becomes quadratic due to memory exhaustion. Parsing happens before validation so even invalid queries can burn lots of CPU time and memory. To prevent this you can set a maximum number of tokens allowed within a document.