Description
Bug Description
I've created a graph to replicate the Goodreads website, where you can keep track of your current readings and give ratings to books. The graph's name is "goodreads_db" and the vertices can be of the following labels: "Book", "Author", and "User". When I open AGE Viewer, only "*" and "User" are available on the "Node Label" panel, both "Book" and "Author" appear on the "Edge Label" panel (which are wrongly put since both of them belong to "Node Label").
Furthermore, when I click on the "Book(11)" or "Author(5)" button, it creates a query but it places the "Book" label as an edge label:
Here is an example of how I'm adding these "Book" vertices:
SELECT * FROM cypher ('goodreads_db', $$
CREATE (a :Book {title: "The Hobbit", author: "J.R.R. Tolkien", pages: 336, rating: 4.28, ratings: 3577180, reviews: 61452, series: "The Lord of the Rings"})
RETURN a
$$) as (a agtype);
Expected behavior
The "Book" and "Author" label should be placed under "Node Label", so that when I click it, it would create a query like this:
SELECT * from cypher('goodreads_db', $$
MATCH (V:Book)
RETURN V
$$) as (V agtype);
When I type this query manually, the right behavior is shown:
Activity