Open
Description
I discovered this last night while trying to build good tests for #92.
I tried to change our example schema by:
- making dog's owner a
Sentient
- giving humans two new fields:
pets: [Pet]
catsAndDogs: [CatOrDog]
However, this will not compile, since it means the type definition of Dog
needs to include the type definition of CatOrDog
which needs to include Dog
which… is circular.
I don't know what the right answer to this is. Presumably either newtypes
, a language extension, or abandoning large chunks of the type-based approach.