Hi - New to Graph and would like to learn more about modeling and design.
How would you best model an employee to company relationship, where you have a Company entity and a Person entity?
Would it be better to have
- MATCH (n:Person)-[r:EMPLOYEE]->(m:Company) WHERE r.occupation = 'Janitor' RETURN n, r, m
- MATCH (n:Person)-[r:JANITOR]->(m:Company) RETURN n, r, m
Is there a threshold for which there are too many relationship types between two nodes? Or is the database better optimized for relationships versus properties on relationships?
Thanks in advance for your help.