Package io.jmix.graphql.schema
Class BaseTypesGenerator
java.lang.Object
io.jmix.graphql.schema.BaseTypesGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic graphql.schema.GraphQLArgumentShortcut for query argument builderstatic graphql.schema.GraphQLArgumentargNonNull(String id, String type) static StringgetEnumFieldTypeName(MetaProperty metaProperty) getFieldTypeName(MetaProperty metaProperty) protected StringgetReferenceTypeName(MetaProperty metaProperty) static graphql.schema.GraphQLInputObjectFieldinpObjectField(String fieldName, String type, String description) Shortcut for input value definitionstatic graphql.schema.GraphQLArgumentShortcut for query argument builder (list type argument)static graphql.schema.GraphQLInputObjectFieldlistInpObjectField(String fieldName, String type, String description) Shortcut for input value definition that has list typestatic graphql.schema.GraphQLList
-
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 nametype- input value typedescription- 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 nametype- input value typedescription- input value description- Returns:
- field
-
argNonNull
-
arg
public static graphql.schema.GraphQLArgument arg(String name, String type, @Nullable String description) Shortcut for query argument builder- Parameters:
name- argument nametype- argument typedescription- 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 nametype- argument typedescription- argument description- Returns:
- argument
-
listType
-
getFieldTypeName
-
getReferenceTypeName
-
getEnumFieldTypeName
-