How to write complex queries involving search in multiple Node types. for example following query returns ids of products usually bought together.
match (n:Product)-[:CONTAIN]-(:Order)-[:CONTAIN]-(p2:Product)
where ID(n)={product_id}
return ID(p2), count(*) as bought_count
But I am not able to figure out how to do such queries using Neomodel Node objects. any help?
context: I have two nodes name order and product. each order node is linked to all products it contains with relation named contain. Now I want to query all products which shares same order bucket.