You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by vg...@apache.org on 2024/10/16 10:38:08 UTC
(incubator-hugegraph) 01/01: fixup
This is an automated email from the ASF dual-hosted git repository.
vgalaxies pushed a commit to branch fix-el
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
commit d8ce51a7b9761d323bdc86f53caed9cc284d0be6
Author: V_Galaxy <vg...@apache.org>
AuthorDate: Wed Oct 16 18:37:48 2024 +0800
fixup
---
.../src/main/java/org/apache/hugegraph/io/GraphSONSchemaSerializer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/io/GraphSONSchemaSerializer.java b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/io/GraphSONSchemaSerializer.java
index 31d197c09..db8d874e8 100644
--- a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/io/GraphSONSchemaSerializer.java
+++ b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/io/GraphSONSchemaSerializer.java
@@ -83,6 +83,8 @@ public class GraphSONSchemaSerializer {
}
if (!edgeLabel.isFather()) {
+ map.put(HugeKeys.SOURCE_LABEL, edgeLabel.sourceLabelName());
+ map.put(HugeKeys.TARGET_LABEL, edgeLabel.targetLabelName());
map.put(HugeKeys.LINKS,
graph.mapPairId2Name(edgeLabel.links()));
map.put(HugeKeys.FREQUENCY, edgeLabel.frequency());