MatheusFarias03 opened a new issue, #111:
URL: https://github.com/apache/age-viewer/issues/111

   **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").
   
   <img width="787" alt="image" 
src="https://user-images.githubusercontent.com/83461020/213214565-1c8bd42e-060e-44fe-bfe0-4331938bb77f.png";>
   
   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:
   
   <img width="505" alt="image" 
src="https://user-images.githubusercontent.com/83461020/213248382-b055fdbf-2f51-4a76-867c-fa4ab917d0e8.png";>
    
   Here is an example of how I'm adding these "Book" vertices:
   ```sql
   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:
   ```sql
   SELECT * from cypher('goodreads_db', $$
           MATCH (V:Book)
           RETURN V
   $$) as (V agtype);
   ```
   
   When I type this query manually, the right behavior is shown:
   
   <img width="487" alt="image" 
src="https://user-images.githubusercontent.com/83461020/213250727-21e903f9-2cf4-4996-945f-153a26d8e663.png";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to