Neo4j OGM - 过滤器组合

Neo4j OGM - filters combination

我需要在 neo4j-ogm 中使用 Filter/Filters 形成一个动态查询。 查询的简化版本可能如下所示:

(A and B and C)
  and (
     (
      (D or E) and not (F or J)
     )  
      or
     (
      (H or I) and not (G or K)
     ) 
     or
    ...... more conditions like this
    )

)

我找不到如何通过将过滤器组合成逻辑结构来使用过滤器来做到这一点(我看起来不够努力吗?)。

是否可能(从实现上看,过滤器在内部维护为普通列表,不允许任何优先级等)?

当前版本似乎无法做到这一点。 我最终 'flatting' 条件树变成了这样的结构:

A and B and C and D and not F and not J or 
A and B and C and E and not F and not J or 
A and B and C and H and not G and not K or 
A and B and C and I and not G and not K

出于调试目的,这相当丑陋且不可读,但 AND 优先于 OR,应该可以工作。