我的问题是,我如何查询“聊天”表以检索个人资料表中的人员详细信息。
ParticipatinIn
edge 从 Person 开始聊天。
HasProfile
Edge 开始了个人资料。
请帮我解决这个问题..
谢谢
最佳答案
我用过这个结构
您可以使用这样的查询:
select name, person.name, person.out("hasProfile").name as profile from (select name, in('ParticipatinIn') as person from Chat unwind person) unwind profile
如果你使用遍历,如果一个人是两个不同 Chat 的一部分,你只会得到那个人一次。
希望对您有所帮助。
关于orientdb - 如何在 orientDb 中查询带边的类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37585048/