cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Property or label to differentiate nodes

arunkumar413
Node Clone

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

hcorfield
Node

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.