火 旗:
如何使用两个lookup的变量
$good = LOOKUP ON goods where goods.tittle != “” yield goods.tittle as tittle |ORDER BY $-.tittle ASC |yield $-.VertexID as gid;
$user = LOOKUP ON users where users.name != “” yield users.name as name |ORDER BY $-.name ASC |yield $-.VertexID as uid;
INSERT EDGE edgeA(time) VALUES $good.gid->$user.uid:(now());
单独使用一个循环变量没有问题,