I have created two vertices, one with label "Book" and another with label "User". The "Book" vertex has a property called "title" and the "User" vertex has the properties "first_name" and "last_name".
SELECT * FROM cypher ('goodreads_db', $$
MATCH (v)
RETURN v
$$) as (v agtype);
v
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{"id": 844424930131969, "label": "User", "properties": {"read": 9, "country": "Brazil", "reading": 2, "last_name": "Matsumoto", "first_name": "Matheus"}}::vertex
{"id": 1125899906842625, "label": "Book", "properties": {"pages": 336, "title": "To Kill a Mockingbird", "author": "Harper Lee", "rating": 4.27, "ratings": 5574002, "reviews": 107847, "language": "English"}}::vertex
(2 rows)
When I try to visualize these nodes on AGE Viewer, it does not show the book title nor the user's first name on top of their vertices. Instead, it shows the book's id and nothing on the user's vertex (image below). Is there any way that I can output the book's title and the user's first name instead of what is currently displaying? If so, how?
There is a field above the graph with a list of the nodes and edges' labels, click on the label you want to change and a menu will appear below the graph, then choose the "caption" you want to display, that's what will show on top of the vertex.