Package graphql.util.querygenerator
Class QueryGeneratorOptions.QueryGeneratorOptionsBuilder
- java.lang.Object
-
- graphql.util.querygenerator.QueryGeneratorOptions.QueryGeneratorOptionsBuilder
-
- Enclosing class:
- QueryGeneratorOptions
@ExperimentalApi public static class QueryGeneratorOptions.QueryGeneratorOptionsBuilder extends java.lang.Object
Builder forQueryGeneratorOptions
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryGeneratorOptions
build()
QueryGeneratorOptions.QueryGeneratorOptionsBuilder
filterFieldContainerPredicate(java.util.function.Predicate<GraphQLFieldsContainer> predicate)
Sets the predicate used to filter field containers.QueryGeneratorOptions.QueryGeneratorOptionsBuilder
filterFieldDefinitionPredicate(java.util.function.Predicate<GraphQLFieldDefinition> predicate)
Sets the predicate used to filter field definitions.QueryGeneratorOptions.QueryGeneratorOptionsBuilder
maxFieldCount(int maxFieldCount)
Sets the maximum number of fields that can be included in the generated query.
-
-
-
Method Detail
-
maxFieldCount
public QueryGeneratorOptions.QueryGeneratorOptionsBuilder maxFieldCount(int maxFieldCount)
Sets the maximum number of fields that can be included in the generated query.This value must be non-negative and cannot exceed
QueryGeneratorOptions.MAX_FIELD_COUNT_LIMIT
.- Parameters:
maxFieldCount
- the maximum field count- Returns:
- this builder
-
filterFieldContainerPredicate
public QueryGeneratorOptions.QueryGeneratorOptionsBuilder filterFieldContainerPredicate(java.util.function.Predicate<GraphQLFieldsContainer> predicate)
Sets the predicate used to filter field containers.The field container will be filtered out if this predicate returns false.
- Parameters:
predicate
- the predicate for filtering field containers- Returns:
- this builder
-
filterFieldDefinitionPredicate
public QueryGeneratorOptions.QueryGeneratorOptionsBuilder filterFieldDefinitionPredicate(java.util.function.Predicate<GraphQLFieldDefinition> predicate)
Sets the predicate used to filter field definitions.The field definition will be filtered out if this predicate returns false.
- Parameters:
predicate
- the predicate for filtering field definitions- Returns:
- this builder
-
build
public QueryGeneratorOptions build()
-
-