Class QueryGeneratorOptions

java.lang.Object
graphql.util.querygenerator.QueryGeneratorOptions

@ExperimentalApi public class QueryGeneratorOptions extends Object
Options for the QueryGenerator class.
  • 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

      public Predicate<GraphQLFieldsContainer> 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

      public Predicate<GraphQLFieldDefinition> 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 new QueryGeneratorOptions.QueryGeneratorOptionsBuilder with default values.
      Returns:
      a new builder instance