Class BaseTypesGenerator

java.lang.Object
io.jmix.graphql.schema.BaseTypesGenerator

@Component("gql_BaseTypesGenerator") public class BaseTypesGenerator extends Object
  • Constructor Details

    • BaseTypesGenerator

      public BaseTypesGenerator()
  • Method Details

    • listInpObjectField

      public static graphql.schema.GraphQLInputObjectField listInpObjectField(String fieldName, String type, @Nullable String description)
      Shortcut for input value definition that has list type
      Parameters:
      fieldName - field name
      type - input value type
      description - input value description
      Returns:
      field
    • inpObjectField

      public static graphql.schema.GraphQLInputObjectField inpObjectField(String fieldName, String type, @Nullable String description)
      Shortcut for input value definition
      Parameters:
      fieldName - field name
      type - input value type
      description - input value description
      Returns:
      field
    • argNonNull

      public static graphql.schema.GraphQLArgument argNonNull(String id, String type)
    • arg

      public static graphql.schema.GraphQLArgument arg(String name, String type, @Nullable String description)
      Shortcut for query argument builder
      Parameters:
      name - argument name
      type - argument type
      description - argument description
      Returns:
      argument
    • listArg

      public static graphql.schema.GraphQLArgument listArg(String name, String type, @Nullable String description)
      Shortcut for query argument builder (list type argument)
      Parameters:
      name - argument name
      type - argument type
      description - argument description
      Returns:
      argument
    • listType

      @NonNull public static graphql.schema.GraphQLList listType(String typeName)
    • getFieldTypeName

      public String getFieldTypeName(MetaProperty metaProperty)
    • getReferenceTypeName

      protected String getReferenceTypeName(MetaProperty metaProperty)
    • getEnumFieldTypeName

      public static String getEnumFieldTypeName(MetaProperty metaProperty)