Skip to content

Is overriding node labels with __label__ considered safe? #711

Answered by aanastasiou
nquinn-ek asked this question in Q&A
Discussion options

You must be logged in to vote

@nquinn-ek I would not call it "best practice" (__label__ is "private" anyway), as it would differentiate what you perceive as an entity name in your program VS the backend. The label of a given entity is very important for the proper serialisation / deserialisation of the entity with the backend as well as setting up any indices. Most of the times, you don't have to deal with setting it manually.

Having said that, if you are extending a data model and you have such clashes, you could resolve them by modifying the __label__ as a last resort. It would be risky if you run across situations where you have to re-set that label a few times, in which case you would have to cleanup any remnants …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nquinn-ek
Comment options

Answer selected by nquinn-ek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants