added capitalization of reference names in Network GetMeta
package network
import (
+ "strings"
"fmt"
"github.com/creativesoftwarefdn/weaviate/graphqlapi/descriptions"
"github.com/creativesoftwarefdn/weaviate/models"
@@ -117,8 +118,12 @@ func genSingleNetworkMetaClassPropertyFields(class *models.SemanticSchemaClass,
return nil, err
}
+ if *propertyType == schema.DataTypeCRef{
+ singleClassPropertyFields[strings.Title(property.Name)] = convertedDataType
+ } else {
singleClassPropertyFields[property.Name] = convertedDataType
}
+ }
return singleClassPropertyFields, nil
}
