Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { // Node that the edge is pointing to. Node string // Label is the label for the edge. Label string }
Edges are the relations between types in the schema.
type Graph ¶
Graph represents a parsed GraphQL schema and has methods to print different representations of it.
func NewGraph ¶
NewGraph returns a graph from the provided GraphQL schema. If includeDefaultScalars is true, default Int64 and Time scalars will be added to the schema.
func (*Graph) DotNotation ¶
DotNotation returns a dot-language representation of the graph. https://graphviz.org/doc/info/lang.html
func (*Graph) MermaidNotation ¶
MermaidNotation returns a mermaid-language representation of the graph. https://mermaid-js.github.io/mermaid/#/
func (*Graph) MermaidWeb ¶
func (g *Graph) MermaidWeb()
MermaidWeb generates a mermaid representation of the graph, starts a web server to serve the diagram, and opens the browser to the web page.