graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.79k stars 517 forks source link

Implement shortest path visualization between types #105

Open playerx opened 5 years ago

playerx commented 5 years ago

Hi,

Thanks first of all for this project, it helps a lot to visualize our domain objects and their relations.

When graph grows its necessary to understand how to get from Type 1 to Type 2 and it will be helpful to have ability to see shortest path between types, in voyager

Example: Selected Type 1 Selected Type 2 (with ctrl + click)

and voyager shows shortest path between those two Entities, how to get from Type 1 to Type 2

I already need such feature :)

FluorescentHallucinogen commented 5 years ago

@playerx

I already need such feature :)

Just curious, what's the use case?

Is this somehow related to optimizing GraphQL queries?

playerx commented 5 years ago

Hi @FluorescentHallucinogen, I had situation when there were multiple ways getting from Type 1 to Type 2 and it was necessary to analyze all ways and find shortest one. I think its necessary for big graphs when there are lots of domain objects and you don't want to analyze all ways manually and find shortest one

FluorescentHallucinogen commented 5 years ago

@playerx

and it was necessary to analyze all ways and find shortest one.

For what? What's your final goal? To write the most optimized query? Or something else?

bsalehi commented 4 years ago

One goal would be explainability