Documentation ¶
Overview ¶
Package graphql implements JSON marshaling and unmarshaling of graph as used by GraphQL
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unmarshal ¶
Unmarshal parses the JSON-encoded data and stores the result in dst. Node IDs are obtained from the JSON fields identified by the uid parameter. UIDs obtained from the JSON encoding must map to unique node ID values consistently across the JSON-encoded spanning tree. graph.Node values returned by dst.NewNode must satisfy StringIDSetter.
Types ¶
type LabelSetter ¶
type LabelSetter interface {
SetLabel(string)
}
LabelSetter is a graph edge that can set its label.
type StringIDSetter ¶
StringIDSetter is a graph node that can set its ID based on the given uid string.
Click to show internal directories.
Click to hide internal directories.