Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Auto-Complete the graph #1

Closed
yGuy opened this issue Apr 23, 2024 · 0 comments · Fixed by #3
Closed

Feature: Auto-Complete the graph #1

yGuy opened this issue Apr 23, 2024 · 0 comments · Fixed by #3

Comments

@yGuy
Copy link
Member

yGuy commented Apr 23, 2024

Optionally allow for "completing" the graph when the query does not contain edges between the nodes.
We could add a configuration that takes a list of relationship types or a wildcard (*) that, when specified will issue a second cypher query after the initial query has run to load the relationships between the nodes in the result set.
This helps when doing simple queries that only return nodes so that you get a connected graph (with the relationship types that you are interested in.

DataExplorer for Neo4j does this automatically and the neo4j browser has this option enabled by default.

Proposed API:

g.set_autocomplete_relationships( bool | array<string>)`

This requires collecting the ids of the nodes and issueing the respective query to merge in relationships to the set of edges to pass to the widget.

@fskpf fskpf closed this as completed May 22, 2024
@fskpf fskpf linked a pull request May 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants