Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Inheritance in one collection. Mongoose #398

Description

@lomkovsky

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions