graphql-voyager
graphql-voyager copied to clipboard
Enum
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 Do you want to have enums as separate boxes on a graph? Or do you have something else in mind?
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.
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.
I agree with @chrisui and @danpalmer
+1 :)