Package io.jmix.graphql.schema
Class BaseTypesGenerator
java.lang.Object
io.jmix.graphql.schema.BaseTypesGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic graphql.schema.GraphQLArgument
Shortcut for query argument builderstatic graphql.schema.GraphQLArgument
argNonNull
(String id, String type) static String
getEnumFieldTypeName
(MetaProperty metaProperty) getFieldTypeName
(MetaProperty metaProperty) protected String
getReferenceTypeName
(MetaProperty metaProperty) static graphql.schema.GraphQLInputObjectField
inpObjectField
(String fieldName, String type, String description) Shortcut for input value definitionstatic graphql.schema.GraphQLArgument
Shortcut for query argument builder (list type argument)static graphql.schema.GraphQLInputObjectField
listInpObjectField
(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
-