0

根據 this 以下查詢:查找所有的基團定義的頂點之間的路徑中datastax DSE曲線

g.V(ids).as("a").repeat(bothE().otherV().simplePath()).times(5).emit(hasId(within(ids))).as("b").filter(select(last,"a","b").by(id).where("a", lt("b"))).path().by().by(label) 

不datastax圖表工作,因爲lt("b")部分不能datastax ID這是工作一個JSON格式

{ 
    '~label=person', 
    member_id=54666, 
    community_id=505443455 
} 

我怎樣才能改變LT(「b)部分,以便查詢工作?

請幫忙

回答

3

你可以選擇任何可比的屬性。例如,如果所有的頂點都具有name屬性:

g.V(ids).as("a").repeat(bothE().otherV().simplePath()).times(5). 
    emit(hasId(within(ids))).as("b"). 
    filter(select(last,"a","b").by("name").where("a", lt("b"))). 
    path().by().by(label) 
相關問題