This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
Inheritance in one collection. Mongoose #398
Open
Description
Expected behavior
Hi there. I have the goal of displaying data that is inherited as a tree of linked data. In the 'Product Categories' collection, I have related data by field 'ancestors'.
'product-categories'.js
...
mongoose.Schema({
...
'ancestors': [{ type: mongoose.Schema.Types.ObjectId, ref: 'productCategories' }],
...
})
I expect to see something like this:
https://drive.google.com/open?id=1-1IbLiZVCIBiT9KzYjuKRNWoYA4CMXw8
Actual behavior
But now I see this:
https://drive.google.com/open?id=1imaBCxH6Mn60lju9Gc7qAG3BjopenR5_
Question:
Does Forest Admin enable such way of a displaying (the tree) of related data?
- Lumber Package Version: 6.13.4
- Liana Version: 5.7.0
- Database Dialect: MongoDB
- Database Version: 4.2
Activity