Nhogs / popoto

Visual query builder for Neo4j graph database
http://popotojs.com
GNU General Public License v3.0
506 stars 70 forks source link

How to Remove Relations based on selection #27

Closed veerareddyakkili closed 5 years ago

veerareddyakkili commented 6 years ago

If i click on Directed on person Node, it should display and when i click on Produced , Produced should be displayed and Directed should be hidden. again if i select on Produced , it should not display twice. How to achieve this.

Popotojs commented 6 years ago

This behaviour cannot be done without some changes in code.

This is not a common behaviour because the graph query builder allows multiple relations including relations of the same type to match the graph data. This would express and "AND" operation between values (for example, match Person Directed "The Matrix" and Produced "The Matrix" and Produced "The Matrix Reloaded")

One possible way to achieved this would be to add an event in graph when relation is clicked or added and remove others relations.

I created #28 to add this event.

Another optimization could be to remove or disable the relations when they have 0 values with current selection.

veerareddyakkili commented 6 years ago

when can we expect updated version to have the code for above requested options.

Popotojs commented 6 years ago

I added the event in version 2.0.4 with an example on how to use it here https://github.com/Nhogs/popoto-examples/tree/master/add-relation-event would this fit your needs?

veerareddyakkili commented 6 years ago

Why node ID is being displayed instead of node label name.

How to display the properties of the node or relation when we click on node or relations.

On Wed, Jun 20, 2018 at 6:55 AM Popoto.js notifications@github.com wrote:

I added the event in version 2.0.4 with an example on how to use it here https://github.com/Nhogs/popoto-examples/tree/master/add-relation-event would this fit your needs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Nhogs/popoto/issues/27#issuecomment-398708837, or mute the thread https://github.com/notifications/unsubscribe-auth/AI_IAXTfD3uqKxnnjAzBSN3NDFu4bLXYks5t-ioZgaJpZM4UjJ-a .

-- Thanks!! Akkili.

Popotojs commented 5 years ago

You have two possibilities to customize what to display in a node: