Package graphql.util.querygenerator
Class QueryGeneratorOptions
java.lang.Object
graphql.util.querygenerator.QueryGeneratorOptions
Options for the
QueryGenerator
class.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the predicate used to filter field containers.Returns the predicate used to filter field definitions.int
Returns the maximum number of fields that can be included in the generated query.Creates a newQueryGeneratorOptions.QueryGeneratorOptionsBuilder
with default values.
-
Method Details
-
getMaxFieldCount
public int getMaxFieldCount()Returns the maximum number of fields that can be included in the generated query.- Returns:
- the maximum field count
-
getFilterFieldContainerPredicate
Returns the predicate used to filter field containers.The field container will be filtered out if this predicate returns false.
- Returns:
- the predicate for filtering field containers
-
getFilterFieldDefinitionPredicate
Returns the predicate used to filter field definitions.The field definition will be filtered out if this predicate returns false.
- Returns:
- the predicate for filtering field definitions
-
newBuilder
Creates a newQueryGeneratorOptions.QueryGeneratorOptionsBuilder
with default values.- Returns:
- a new builder instance
-