How do you represented nested types in reasonML? my apollo query returns:
worldcup {
host: country
}
country{
name: string
hostedWorldCups: worldcup
}
But If I try:
type worldcup = {
year: int,
name: string,
host: country,
};
type country = {
id: option(string),
code: option(string),
name: option(string),
hostedWorldCups: list(worldcup),
};
I get an Error: Unbound type constructor country
how should I represent this nested types?