如何删除gremlin中没有边的不可修改顶点? [英] How to delete the unmodifiable vertex which has no edges in gremlin?

查看:209
本文介绍了如何删除gremlin中没有边的不可修改顶点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不幸的是,我的申请中有三个优惠.当我使用两个具有相同电子邮件的不同提供程序时,则在图中创建了另一个具有新ID的顶点.提供程序问题已解决.但是,现在我要删除该新创建的顶点. 我尝试过

Unfortunately, I have three provides in my application. when I used two different providers which are having same email then there is another vertex got created with new id in the graph. Providers issue got solved.But, now I want to delete that newly created vertex. I have tried

g.V('Persona').has('personaId','personaId').drop()

可是,

Cannot modify unmodifiable vertex: v[73732348]

推荐答案

我的答案可能无法完全解决您的问题,但我只是指出您看到的错误是JanusGraph特有的.我不知道这意味着什么.不过,我确实注意到您的Gremlin:

My answer might not quite solve your problem, but I will just point out that the error you are seeing is JanusGraph specific. I don't know what it signifies offhand. I do note though that your Gremlin of:

g.V('Persona').has('personaId','personaId').drop()

可能是错误的,仅是说:'用"Persona"的T.id查找一个顶点,然后用键"personaId"和值"personaId"过滤.据我所知,JanusGraph不允许使用"Persona"的顶点标识符,因此我想知道这是否是标签?相反,您应该这样做:

could be wrong, only in the sense that it's saying: 'Find a vertex with the T.id of "Persona" and then filter that by the key "personaId" and the value "personaId"'. To my knowledge JanusGraph would not allow for vertex identifier of "Persona" so I'm wondering if that is instead meant to be a label? Should you instead be doing:

g.V().has('Persona','personaId','personaId').drop()

JanusGraph中的顶点验证方法可能会生成此不可修改的顶点"错误.

It could be possible that vertex validation methods in JanusGraph are generating this "unmodifiable vertex" error.

这篇关于如何删除gremlin中没有边的不可修改顶点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆