像SQL IN运算符这样的Gremlin查询吗? [英] Gremlin query like SQL IN operator?
本文介绍了像SQL IN运算符这样的Gremlin查询吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我陷入了格林姆林.我有类似array的电子邮件,我需要进行查询以查找所有具有这些电子邮件的用户.
Im stuck with gremlin. I have emails like array and I need to make query to find all user with those emails.
在SQL中,我有
SELECT email(s)
FROM user
WHERE email IN (xxx, yyy...)
如何用Gremlin查询语言做到这一点?
How can I do this in Gremlin query language?
推荐答案
您想在这里做的是:
g.V().has('anyProperty', within('possibleValue1', 'possibleValue2'))
这篇关于像SQL IN运算符这样的Gremlin查询吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文