Expected behavior
Actual Behavior
I have a field described in Mongoose schema as:
'gallery': {
'thumbnail': {
'url': String,
'cloudId': String,
'type': String,
'duration': Number,
'size': Number,
},
},
For some reason I see this field in .forestadmin-schema.json as:
{
"field": "gallery",
"type": {
"fields": [{
"field": "thumbnail",
"type": "String"
}]
},
And it looks like this in admin panel:
So I can’t view or edit this nested document. But the most annoying thing that I can’t edit my document at all, because every time I save it I lose gallery.thumbnail field as it’s rewritten with “[object Object]” in my database.
Context
Please provide any relevant information about your setup.
- Express Version: ~4.16.3
- Database Dialect: Mongodb
MongoDB server version: 3.6.12