juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
38 stars 6 forks source link

Update documentation for cyclic references to include interfaces #21

Open tigloo opened 6 months ago

tigloo commented 6 months ago

The documentation mentions to use cached types to deal with cyclic references. However, it lists the "interface" property as part of the first instantiation. If the interface type leads to a cyclic reference, Leto will still throw an exception.

Update the documentation so that "interface" is also removed from the first instantiation, then use "_type.inheritsFrom()" in a second step.