T
TanStack15mo ago
rare-sapphire

Does subrows must be of the same type?

Hello, I have a deeply nested object. Something like this
[company => {
facilities => Facility[]
groups => Group[
{
facilities => Facility[]
subgroups => Group[]
}
]
}]
[company => {
facilities => Facility[]
groups => Group[
{
facilities => Facility[]
subgroups => Group[]
}
]
}]
They have circular references, meaning that a Group can have subgroups of the same type and facilities of type Facility. This all wrapped in a Company which also have facilities and groups in it. My question is does subrows must be of the type Company or is there some trick that can help me to build this nested table?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?