Auto-generated GraphQL Schema -> relationships/properties appear in both directions


(Borislavpopov108) #1

Generating automatically a graphQL schema out of a Neo4J graph it seems that an inverse relationship appears for each defined relation. Seems useful for querying / traversing the graph, but definitely puzzling.
e.g. if you wanted to express (Person and House are actually labels in Neo and Types in GraphQL)

Person -owns-> House being expressed as (P1:Person) (H1:House) and (P1) -[:owns]-> (H1) would result in a graphql schema that contains Person and House as types and 2 relationships/paths:
Person - owns -> House and House - owns -> Person

Am I missing some divine meaning here?
Thank you