Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有员工管理特定国家和特定公司。我只想查询给定员工管理的国家和公司中的帐户。想法?需要注意的性能问题?
Gremlin 查询也是可以接受的!
这似乎有效:
select from Account where @rId in (select expand(out('managingCountry').in('inCountry')).@rId from Employee where userId = 3) AND @rId in (select expand(out('managingCompany').in('inCompany')).@rId from Employee where userId = 3)
如果有人有更好的解决方案,则保留