Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forest Admin Dashboard display mongoose mixed data type as [object,object] #441

Open
sanknmFinicity opened this issue Nov 24, 2020 · 0 comments

Comments

@sanknmFinicity
Copy link

sanknmFinicity commented Nov 24, 2020

Expected behavior

We have field defined in mongoose

feild1: [
{
type: Schema.Types.Mixed,
validate: customValidatior,
default: customDefaultFeild,
},
]

In V4 version , feild1 is getting that is getting mapped in following manner in .forestadmin-schema.json

"field": "feild1",
      "type": [{
        "fields": [{
          "field": "validate",
          "type": {
            "fields": []
          }
        }, {
          "field": "default",
          "type": [{
            "fields": []
          }]
        }]
      }],

In V6 version .forestadmin-schema.json
{
"field": "feild1",
"type": [null],
"defaultValue": null,
}

Forest admin Meta
"database_type": "MongoDB",
"liana": "forest-express-mongoose",
"liana_version": "6.3.4",
"engine": "nodejs",
"engine_version": "12.18.0",
"framework": "express",
"framework_version": "^4.17.1",
"orm_version": "5.9.29"

It should display all details in the forestadmin for feild1

Actual behavior

Currently feild1 is displayed as following in the forestadmin

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

On edit it display its value as

<(unknown):ember92186:owner(XXXXXXXX)>

Failure Logs

TODO: Please provide any relevant information about your setup.

  • Package Version: 6.3.4
  • Express Version: 4.17.1
  • Mongoose Version: 5.9.29
  • MongoDB Version: 3.5.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant