private string GetFieldType(string typeToken, string fieldName) {
var type = metaModel.GetAssetType(typeToken);
var attributeDefinition = type.GetAttributeDefinition(fieldName);
if(attributeDefinition.AttributeType != AttributeType.Relation) {
throw new VersionOneException("Not a Relation field");
}
return attributeDefinition.RelatedAsset.Token;
}