loemlin 与 AWStune lamfgbhbda 功能

问题描述

我正在尝试在 javascript 中学习 AWS neptfdsune lambda。

问题是我不知道如何在上面的查询中导入“has”和“both”?或者有没有其他方法可以做到这一点?

解决方法

当您进行“匿名”遍历(未通过点连接到其他步骤)时,您需要在步骤前添加 __.(双下杠)。所以你的查询变成:

g.V().
has("person","first_name",fromName).
until(__.has("person",toName)).
repeat(__.both("friends").simplePath() )

如果您需要帮助查找 Gremlin JavaScript 客户端的常见导入,这里列出了一些关键导入:https://tinkerpop.apache.org/docs/current/reference/#gremlin-javascript-imports