Package graphql.normalized
Class ExecutableNormalizedOperationFactory.Options
java.lang.Object
graphql.normalized.ExecutableNormalizedOperationFactory.Options
- Enclosing class:
ExecutableNormalizedOperationFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GraphQLContext
private final Locale
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Options
(GraphQLContext graphQLContext, Locale locale, int maxChildrenDepth) -
Method Summary
Modifier and TypeMethodDescriptionint
graphQLContext
(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.
-
Field Details
-
graphQLContext
-
locale
-
maxChildrenDepth
private final int maxChildrenDepth
-
-
Constructor Details
-
Options
-
-
Method Details
-
defaultOptions
-
locale
Locale to use when parsing the query.e.g. can be passed to
Coercing
for 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:
-