graphql-voyager icon indicating copy to clipboard operation
graphql-voyager copied to clipboard

Enum

Open chrisui opened this issue 7 years ago • 5 comments

Hey! Firstly awesome project and I highly appreciate the effort put into it.

I was wondering if you had any plans to support Enums more clearly within the visualisation?

chrisui avatar Jul 24 '18 14:07 chrisui

@chrisui Do you want to have enums as separate boxes on a graph? Or do you have something else in mind?

IvanGoncharov avatar Jul 24 '18 20:07 IvanGoncharov

I think if they were to be shown on the graph they could be shown with a distinctive style to show they are not necessarily "traditional" nodes in the graph.

Otherwise we might want to allow clicking/hovering the type in the node/sidebar and seeing extra information about the type. I would expect this to be a similar ux pattern to how you could show more information about existing types which are just shown as strings. Ie. nullable, lists, strings etc.

chrisui avatar Jul 24 '18 21:07 chrisui

I'd put a vote in for having them displayed in the graph with a different style. We use Enums extensively, and often the fact that some data is represented as an Enum vs a Type does not matter too much, so I'd quite like to be able to view them as part of the full type graph.

danpalmer avatar Aug 08 '18 14:08 danpalmer

I agree with @chrisui and @danpalmer

dzenyu avatar Jan 09 '23 16:01 dzenyu

+1 :)

timonbimon avatar Feb 29 '24 13:02 timonbimon