Graph QLParser Options
data class GraphQLParserOptions(var maxTokens: Int? = null, var maxWhitespaceTokens: Int? = null, var maxCharacters: Int? = null, var maxRuleDepth: Int? = null, var captureIgnoredChars: Boolean? = null, var captureLineComments: Boolean? = null, var captureSourceLocation: Boolean? = null) : Serializable
Configure options for parsing GraphQL queries and schema definition language documents. Settings here override the defaults set by GraphQL Java.
Constructors
Properties
Link copied to clipboard
Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing.
Link copied to clipboard
Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored
Link copied to clipboard
Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing.
Link copied to clipboard
Modify the maximum number of characters in a document to prevent malicious documents consuming CPU
Link copied to clipboard
Modify the maximum grammar rule depth to negate malicious documents that can cause stack overflows
Link copied to clipboard
Modify the maximum number of whitespace tokens read to prevent processing extremely large queries