Package graphql.normalized
Class ExecutableNormalizedOperationFactory.Options
java.lang.Object
graphql.normalized.ExecutableNormalizedOperationFactory.Options
- Enclosing class:
ExecutableNormalizedOperationFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default max fields count is 100,000. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default options used when creating instances ofExecutableNormalizedOperation
.deferSupport
(boolean deferSupport) Controls whether defer execution is supported when creating instances ofExecutableNormalizedOperation
.boolean
int
int
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.maxFieldsCount
(int maxFieldsCount) Controls the maximum number of ENFs created.static void
Sets new default Options used when creating instances ofExecutableNormalizedOperation
.
-
Field Details
-
DEFAULT_MAX_FIELDS_COUNT
public static final int DEFAULT_MAX_FIELDS_COUNTThe default max fields count is 100,000. This is big enough for even very large queries, but can be changed via {#setDefaultOptions- See Also:
-
-
Method Details
-
setDefaultOptions
Sets new default Options used when creating instances ofExecutableNormalizedOperation
.- Parameters:
options
- new default options
-
defaultOptions
Returns the default options used when creating instances ofExecutableNormalizedOperation
.- Returns:
- the default options
-
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
-
maxFieldsCount
Controls the maximum number of ENFs created. Can be used to prevent against malicious operations.- Parameters:
maxFieldsCount
- the max number of ENFs created- Returns:
- new options object to use
-
deferSupport
@ExperimentalApi public ExecutableNormalizedOperationFactory.Options deferSupport(boolean deferSupport) Controls whether defer execution is supported when creating instances ofExecutableNormalizedOperation
.- Parameters:
deferSupport
- true to enable support for defer- 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:
-
getMaxFieldsCount
public int getMaxFieldsCount() -
getDeferSupport
- Returns:
- whether support for defer is enabled
- See Also:
-