Skip to content

Commit 649d5cc

Browse files
author
a-brandt
committed
added default options for ArangoDB 2.6
1 parent 140475b commit 649d5cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/arangodb/util/ShortestPathOptions.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class ShortestPathOptions implements OptionsInterface {
1717
private String algorithm;
1818
private String weight;
1919
private Long defaultWeight;
20+
private Boolean includeData = Boolean.TRUE;
2021

2122
/**
2223
* The direction of the edges as a string. Possible values are outbound,
@@ -228,6 +229,13 @@ public Map<String, Object> toMap() {
228229
if (defaultWeight != null) {
229230
mp.put("defaultWeight", defaultWeight);
230231
}
232+
if (includeData != null) {
233+
mp.put("includeData", includeData);
234+
MapBuilder mp2 = new MapBuilder();
235+
mp2.put("edges", true);
236+
mp2.put("vertices", true);
237+
mp.put("includePath", mp2.get());
238+
}
231239
return mp.get();
232240
}
233241

0 commit comments

Comments
 (0)