Class KobbyTypeQueryExtension

  • All Implemented Interfaces:

    
    public class KobbyTypeQueryExtension
    
                        

    Type query. The part of the query that is responsible for selecting fields in the target GraphQL type.

    • Constructor Detail

      • KobbyTypeQueryExtension

        KobbyTypeQueryExtension()
    • Method Detail

      • enumValue

         final Unit enumValue(String pattern)

        Select enum values whose name matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • field

         final Unit field(String pattern)

        Select fields whose name matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • anyOverriddenField

         final Unit anyOverriddenField()

        Select fields that override any fields from the supertype.

      • dependency

         final Unit dependency(String pattern)

        Select fields whose type matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • subTypeDependency

         final Unit subTypeDependency(String pattern)

        Select fields where one of the subtypes matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • superTypeDependency

         final Unit superTypeDependency(String pattern)

        Select fields where one of the supertypes matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • argumentDependency

         final Unit argumentDependency(String pattern)

        Select fields where one of the argument types matches the pattern.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • transitiveDependency

         final Unit transitiveDependency(String pattern)

        Select fields where one of the transitive dependencies matches the pattern.

        The transitive dependencies of a GraphQL field are all types (except scalars) returned by a query on that field, as well as the types of the field's arguments.

        Parameters:
        pattern - ? matches one character, * matches zero or more characters, | OR operator.
      • minWeight

         final Unit minWeight(Integer minWeight)

        Select fields whose weight is greater than or equal to the minWeight.

        The weight of a GraphQL type is the number of types (excluding scalars) that are available for querying on a field that returns the given type.

        The weight of a GraphQL field is the weight of its type plus the weights of the types of its arguments.

        Parameters:
        minWeight - Minimum weight of the target field.
      • maxWeight

         final Unit maxWeight(Integer maxWeight)

        Select fields whose weight is less than or equal to the maxWeight.

        The weight of a GraphQL type is the number of types (excluding scalars) that are available for querying on a field that returns the given type.

        The weight of a GraphQL field is the weight of its type plus the weights of the types of its arguments.

        Parameters:
        maxWeight - Maximum weight of the target field.