this is a simple question. Is there a way to self reference a type in GraphQL?
Let's suppose I have the following:
type MyType {
id: ID!
nodes: [MyType]
}
Yes, just like a tree or something like this.
I'm getting this error:
"Error: GraphQL error: Field "nodes" of type "[MyType]" must have a selection of subfields. Did you mean "nodes { ... }"?
I'm using Apollo.