cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Property or label to differentiate nodes

I'm a bit confused whether to use a label or property on a node. Say for example, I have Messages Node which can be sent to Users and Groups. Should I use a property or label GroupMessage to differentiate Messages node?

1 REPLY 1

A label is a named graph construct that is used to group nodes into sets.

Properties are name-value pairs of data that you can store on nodes or on relationships.

Use a label if you are going to MATCH on User or Group Messages, and property if it will just be used on the RETURN.