![](/img/trans.png)
[英]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.