JSON fields are not generated

When I try to generate a new project on a database using JSON type fields, these fields are ignored in the generation step.

Expected behavior

My JSON fields should be generated, and I should be able to see them in my models

Actual behavior

They are ignored, and a warning message appears in the log.

Failure Logs

Context

forest-express-sequelize: ^6.0.0
postgres: 12.2

Hi @Steve_Bunlon,

Forest Admin automatically generates JSONB field but not JSON.

However, you can easily add your JSON field manually in your model definition.

/models/myModel.js

myJSON: {
  type: DataTypes.JSON,
},

Once added, it will be reflected in your admin frontend.

1 Like