3 ms·
It is not infinitely recursive. It supports nested structures as you show but only up to a predefined depth. IE: fragment CategoriesRecursive on Category
by bern4444 3y ago
It is not infinitely recursive. It supports nested structures as you show but only up to a predefined depth.
IE:
fragment CategoriesRecursive on Category {
subcategories {
...SubcategoryFields
subcategories {
...SubcategoryFields
subcategories {
...SubcategoryFields
}
}
}
}
So you have to build your schema with a maximum supported depth. This is not infinitely recursive which is a limitation of the GQL type system.