type Nodes struct {
Id string `json:"uid"`
Status string `json:"Node.status"`
Note string `json:"Node.note"`
Exec string `json:"Node.exec"`
Condition Condition `json:"Node.condition"`
To []*Nodes `json:"Node.to"`
}
Just like the above code, I defined a node whose to field is a node of the same type. However, when I describe the struct with graphql. Newobject, it prompts me to cycle definition detected. How can I solve this error. Who can tell me. thank you very much.
This is my code to use graphql. Newobject
Just like the above code, I defined a
node
whose to field is anode
of the same type. However, when I describe the struct withgraphql. Newobject
, it prompts me tocycle definition detected
. How can I solve this error. Who can tell me. thank you very much. This is my code to usegraphql. Newobject