Is it possible to order and filter by relation in neo4j ? for example :
I have gardien and kid with relations (father,mother,brother, sister) and I want to list gardiens and kids with their relationships with this type of filter:
if the gardien is the father of the kid: then return (father, kid) else if the kid doesn't have the father : then return his (mother, kid) else if the kid doesn't have the father or mother: then return his (brother, kid) otherwise : return his (sister, kid)
How can do a request like this with cypher ?
Thank you in advance,