[英]How to retrieve already created (graph) database in Cassandra through gremlin?
[英]How to check the node/vertex/Edge is present in the Graph using Gremlin
如何使用Gremlin
查詢檢查Graph
中是否存在node/vertex
或edge
?
檢查節點/頂點
//Returns True or False
g.V('id').hasNext()
檢查邊緣
//Returns True or False
g.V('id).bothE().hasNext();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.