Class ExecutableNormalizedOperationFactory.Options
java.lang.Object
graphql.normalized.ExecutableNormalizedOperationFactory.Options
- Enclosing class:
ExecutableNormalizedOperationFactory
-
Method Summary
Modifier and TypeMethodDescriptionintgraphQLContext(GraphQLContext graphQLContext) Context object to use when parsing the operation.Locale to use when parsing the query.maxChildrenDepth(int maxChildrenDepth) Controls the maximum depth of the operation.
-
Method Details
-
defaultOptions
-
locale
Locale to use when parsing the query.e.g. can be passed to
Coercingfor parsing.- Parameters:
locale- the locale to use- Returns:
- new options object to use
-
graphQLContext
Context object to use when parsing the operation.Can be used to intercept input values e.g. using
InputInterceptor.- Parameters:
graphQLContext- the context to use- Returns:
- new options object to use
-
maxChildrenDepth
Controls the maximum depth of the operation. Can be used to prevent against malicious operations.- Parameters:
maxChildrenDepth- the max depth- Returns:
- new options object to use
-
getGraphQLContext
- Returns:
- context to use during operation parsing
- See Also:
-
getLocale
- Returns:
- locale to use during operation parsing
- See Also:
-
getMaxChildrenDepth
public int getMaxChildrenDepth()- Returns:
- maximum children depth before aborting parsing
- See Also:
-