Expected behavior
I have a model such as :
const PaymentSchema = mongoose.Schema(
{
orderId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'order'
},
schedules: [
{
method: {
type: Number
enum: [1, 2, 3]
},
amount: Number,
...
]
}
)
Thus, schedules are displayed as related data in the UI as list. However, the UI cannot display the record details inside the record view of a schedule because it cannot manage the enum
option of the method
field.
Actual behavior
Schedules displayed in list:
Record detail view bugging: no error in logs but in console:
To display record details I have to remove the enum option on the model.
Could you fix this, so we don’t have to change our model?
Version details:
"database_type": "MongoDB",
"liana": "forest-express-mongoose",
"liana_version": "6.3.8",
"engine": "nodejs",
"engine_version": "12.19.0",
"framework": "other",
"framework_version": null,
"orm_version": "5.9.4"