Skip to content

Cannot define recursive schema #93

Open
@jml

Description

@jml

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions