cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Is it bad practice to reuse relationship types between different labels?

Chris121
Node

In the movies tutorial we have
(Actor)-[ACTED_IN]-(Movie)

What if we want to add TV shows or some other type of actor?
(Actor)-[ACTED_IN]-(Show)
(VoiceActor)-[ACTED_IN]-(Show)

Is reusing a relationship type bad practice?

Asking because of some schema inference warnings in neo4j-graphql

Thanks

1 REPLY 1

gabriel_toma
Ninja
Ninja

Never heard of this being an issue, in normal Cypher.
Yet, I don't use neo4j-graphql, so maybe it's something which has to do with graphql itself.
Could you post the warning messages?