https://nebula-graph.io logo
g

Goran Cvijanovic

02/20/2023, 1:00 PM
It is by design, last property overwrite previous, but you can use RANK to differentiate same edge type versions. That feature can’t be used with Cypher queries.
OpenCypher has no such concept as rank.
❤️ 1
k

Kasper

02/20/2023, 1:34 PM
is rank an integer? could i possibly use an integer timestamp as rank?
g

Goran Cvijanovic

02/20/2023, 1:48 PM
Yes it is, and you can use timestamp in eg. linux epoch format or similar.
k

Kasper

02/20/2023, 1:50 PM
great, thanks!
w

wey

02/21/2023, 1:56 AM
@Kasper by default, when omit, the rank field is 0(as you could see
@0
in your query, when needed, we could insert edge with
@12345
to distinguish same type of edge between one pair of src-dst node. The result(with rank info) could be returned in cypher queries, too. There is no
id
in edges but quadruple of (srcid,dstid,type,rank(0, by default)) is actually the “id” of an edge.
k

Kasper

02/21/2023, 12:54 PM
ok makes sense, thanks for clarification @wey!
🙌 1
4 Views