In Orient DB, I understand a query like this:
match
{class: someNode, as: someNode, where: (id='123')}
.out() {class: someNode as: relatedNode, while:(true), where:(relevance = true)}
return
someNode
Will return someNode with ID 123 if any outnodes has relevance = true. However, what if i want ALL outgoing nodes to be relevance = true connected to someNode? Can I still do a match starting at someNode 123 going out where all = true?
You can try the following:
[edit]
If you need also connected nodes with the same features, you can do the following:
You can change the WHILE and WHERE conditions to slightly change the behavior regarding which nodes you want to include/exclude based on relevance flag