Package graphql.util.querygenerator
Class QueryGeneratorResult
java.lang.Object
graphql.util.querygenerator.QueryGeneratorResult
Represents the result of a query generation process.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryGeneratorResult
(String query, String usedType, int totalFieldCount, boolean reachedMaxFieldCount) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()
Returns the generated query string.int
Returns the total number of fields that were considered during query generation.Returns the type that ultimately was used to generate the query.boolean
Indicates whether the maximum field count was reached during query generation.
-
Constructor Details
-
QueryGeneratorResult
-
-
Method Details
-
getQuery
Returns the generated query string.- Returns:
- the query 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
-