Skip to content

Commit d39b291

Browse files
author
Mark
committed
add BaseEdgeDocument constructor with key
1 parent da3d625 commit d39b291

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/arangodb/entity/BaseEdgeDocument.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ public BaseEdgeDocument(final String from, final String to) {
4747
this.to = to;
4848
}
4949

50+
public BaseEdgeDocument(final String key, final String from, final String to) {
51+
super(key);
52+
this.from = from;
53+
this.to = to;
54+
}
55+
5056
public BaseEdgeDocument(final Map<String, Object> properties) {
5157
super(properties);
5258
final Object tmpFrom = properties.remove(DocumentField.Type.FROM.getSerializeName());

0 commit comments

Comments
 (0)