Skip to content

Commit

Permalink
Merge pull request #5384 from matanshukry/issueUpdateEdgeInnerSelect
Browse files Browse the repository at this point in the history
Allow update edge in/out properties with select query
  • Loading branch information
lvca committed Jan 1, 2016
2 parents 89f1d5e + 03c973f commit ba39419
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,14 @@ else if (size == 0)
fieldValue = null;
}
}
} else if (immutableClass.isEdgeType() && ("out".equals(fieldName) || "in".equals(fieldName)) &&
(fieldValue instanceof List)) {
List lst = (List)fieldValue;
if (lst.size() == 1) {
fieldValue = lst.get(0);
}
}

}

if (OMultiValue.isMultiValue(fieldValue)) {
Expand Down

0 comments on commit ba39419

Please sign in to comment.