E0604 Shape made from itself
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
A shape cannot hold itself, directly or through other shapes, because a value of it would have no end, and neither would the code that reads it. Depth is bounded by the shapes, which is part of why validators need no depth limit of their own.
How to fix it
Hold the other record's id instead, such as parentId: id, and load it with its own query.
In a terminal
duolith explain E0604