use of org.kie.kogito.persistence.api.proto.AttributeDescriptor in project kogito-apps by kiegroup.
the class GraphQLObjectTypeMapper method getGraphQLType.
private GraphQLOutputType getGraphQLType(AttributeDescriptor attribute, GraphQLSchema schema, Map<String, GraphQLType> additionalTypes, Map<String, DomainDescriptor> allTypes) {
String typeName = getTypeName(attribute.getTypeName());
GraphQLType type = schema.getType(typeName);
if (type == null) {
type = additionalTypes.computeIfAbsent(typeName, k -> new GraphQLObjectTypeMapper(schema, additionalTypes, allTypes).apply(allTypes.get(typeName)));
}
return (GraphQLOutputType) type;
}
Aggregations