我有一个工作于2个独立遍历的Vertex upsert和一个Edge Upsert。是否可以将2遍历合并为1遍?我已经尝试过,但是收到错误。
a = self.gV()。has('account','id','account-111111111')。fold()。coalesce(。unfold(),。addV('account')。 property(T.id,'account-111111111'))。has('customer','id','cust-111111111')。as _('v')。V()。has('account','id ','account-111111111')。coalesce(。inE('owns')。where(。outV()。as _('v')),。addE('owns')。from_( 。V('customer','id','cust-111111111'))))>>
a.next()
Works:
顶点更新:
a = gV()。has('account','id','account-111111111')。fold()。coalesce(。unfold(),
。addV('account')。property( T.id,“ account-111111111”))a.next()Edge Upsert:
a = gV()。has('customer','id','cust-111111111')。as _('v')。V()。has('account','id','account-111111111 )。 \Coalesce(。inE('owns')。where(
。outV()。as _('v')),。addE('owns')。from _(。V('customer', 'id','cust-111111111])))]a.next()
我有一个工作于2个独立遍历的Vertex upsert和一个Edge Upsert。是否可以将2遍历合并为1遍?我尝试过,但收到错误。 a = self.g.V()。has('...
研究了一段时间后,您的示例中有很多东西无法正常工作。