Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-06-2020 10:13 AM
Is there any way to highlight nodes in the query? For instance I have a query:
MATCH (n:client{client_id: 100}) -[:PURCHASED*1..3]-(p)
RETURN n,p LIMIT 25
I'd like node with id 100 to be highlighted in result in some way (color, bold... whatever) to find it easily.
Regards,
G.
03-06-2020 05:30 PM
Do you mean within the neo4j browser? If in the browser, my first thought is through GRASS file configuration (color based on a tag/value), I don't believe that is possible yet. (has been requested)
I'm pretty sure this isn't what you want, but there is one way (sort of). You could add a new label to the nodes you want to highlight, using the browser settings to change the color for that label. The labels could be removed, and re-added with the next query. This is a bit of hack though, with a lot of caveats.
03-06-2020 10:08 PM
With your query you will get only Client with client_id as 100..
So why you want to highlight it?
03-07-2020 01:53 AM
You sure? I see more...
Anyway, that's just example.
03-07-2020 12:04 PM
In your code you have chosen only client with client_id as 100 that's why i mentioned above.
However in general I am not sure if you can change the color of node based on the node property using Cypher
All the sessions of the conference are now available online