graphql-kit / graphql-voyager

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

Ability to hide grayed out types and links #210

Open federico-piazza opened 3 years ago

federico-piazza commented 3 years ago

Hello guys,

We have the possibility of skip relay, show/hide leaf and skip deprecated, however I didn't find any way to hide anything that is not related to my selection.

I have a GraphQL schema with lots of types and the graph is huge, it would be great if whenever I click on a type, query or mutation the diagram has a feature to hide everything that is not related to my selection and render a proper diagram.

Here is an example of how the diagram is rendered without the change to hide the grayed out items: https://ibb.co/NFbDn6C

Not sure if it is possible to hide non related items, but if this is not possible it would be great to add this feature.

Regards, Federico