-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
This is my model definition
schema = mongoose.Schema
name: String
parents: [{type: mongoose.Schema.Types.ObjectId, ref: 'Category'}]
children: [{type: mongoose.Schema.Types.ObjectId, ref: 'Category'}]
model = mongoose.model('Category', schema)
model.formage =
is_single: false
list_populate: ['parents', 'children']
search: ['parents', 'name']
list: ['name', 'parents', 'children']
module.exports = model
I have created a "root" category and a "subcategory". The subcategory has "root" as one of its parents. If i change the name of the "root" category to "root name changed", the name is not updated in the populated models. Here are 2 sshots
Metadata
Metadata
Assignees
Labels
No labels

