Open FedericoBiccheddu opened 3 years ago
I guess this becomes an issue when you have a Book
with an Author
and the Author
has a list of Book
?
Your example above doesn't really showcase an issue, as you can simply lift myType
up above Query
Problem: while defining some fields, is not possible to use fields defined later in the file.
Possible solution: make field declaration lazy using a function and not a plain array
Example:
I can submit a PR for this.
PS: in case this would be accepted, we should revert #46