g.V().has('event','id','1').
fold().
coalesce(unfold().
project('vertex','exists').
by(identity()).
by(constant(true)),
addV('event').property('id','1').
project('vertex','exists').
by(identity()).
by(constant(false)))
The post also made the update that there was a more advanced pattern using mergeV(). I wonder if we can "translate" the above to the more advanced mergeV() pattern?
Any help/insight is much appreciated!
Best Regards,
Zhen Lian