Class QueryGeneratorResult

java.lang.Object
graphql.util.querygenerator.QueryGeneratorResult

@ExperimentalApi public class QueryGeneratorResult extends Object
Represents the result of a query generation process.
  • Constructor Details

    • QueryGeneratorResult

      public QueryGeneratorResult(String query, String usedType, int totalFieldCount, boolean reachedMaxFieldCount)
  • Method Details

    • getQuery

      public String getQuery()
      Returns the generated query string.
      Returns:
      the query string
    • getUsedType

      public String getUsedType()
      Returns the type that ultimately was used to generate the query.
      Returns:
      the used type
    • getTotalFieldCount

      public int getTotalFieldCount()
      Returns the total number of fields that were considered during query generation.
      Returns:
      the total field count
    • isReachedMaxFieldCount

      public boolean isReachedMaxFieldCount()
      Indicates whether the maximum field count was reached during query generation.
      Returns:
      true if the maximum field count was reached, false otherwise