Date
1 - 2 of 2
JanusGraph with Gremlin Script. Unable to update properties.
durga...@...
Hi All, I am using here Comm, CommEvt, CommEvtStatus, three vertexes. In the below query, I am finding the CommEvt, Comm vertexes based on conversationId and messageId combo. And updating eTrackingId, status and updatedDate properties on these two vertexes. I am expecting the two Vertexes CommEvt, Comm to be updated with eTrackingId, status and updatedDate. I see only CommEvt vertex being udpated but not the Comm vertex. :> nv=graph.addVertex(T.label,'CommEvtStatus','status','sent2provider','eTrackingId','507099334184','createdDate','2017-10-25T15:28:00.132Z','updatedDate','2017-10-25T15:28:00.132Z','_status','new','rId','15952440-b999-11e7-b554-89848fe47d41');fv=g.V().hasLabel('CommEvt','Comm').has('_status',neq('deleted')).has('conversationId','154333b0-b999-11e7-996e-13a1fa9ce2a0').has('messageId','154333b1-b999-11e7-996e-13a1fa9ce2a0').sideEffect(property('status','sent2provider').property('eTrackingId','507099334184').property('updatedDate','2017-10-25T15:28:00.132Z')).range(0,1).next().addEdge('eventstatus',nv);graph.tx().commit();nv; Is there something wrong in this query. -thanks in advance, Regards, Dp |
|
Jason Plurad <plu...@...>
It's a bit hard to read your query pasted in like that. I'm not clear on what your expected result is with respect to the Comm vertex. Is g.V().hasLabel('CommEvt', 'Comm').has()... supposed to return 2 vertices? This step range(0,1).next() ends up taking only 1 vertex, so only 1 edge would get created between nv and that 1 vertex. On Thursday, October 26, 2017 at 10:06:10 AM UTC-4, durga.panga1 wrote:
|
|