I have a document model with a field with the name type, for example:
{
....
plan: {
type: { type: String, enum: ['regular', 'advantage'], default: 'advantage' },
upgrade_date: { type: Date, default: Date.now },
upgrade_path: { type: String, default: 'advantage-for-all-1' },
downgrade_date: { type: Date },
},
}
Expected behavior
Expect to be able to filter on plan with the subfield ‘type’
Actual behavior
Type does not show up in the list of subfields that you are allowed to filter on (after selecting plan). The other 3 fields do show up as valid subfields in the filter. All fields show up correctly in the details view of the record.
Failure Logs
Please include any relevant log snippets, if necessary.
Context
Please provide any relevant information about your setup.
- Package Version: 6
- Express Version:
- Sequelize Version:
- Database Dialect: Mongo
- Database Version:
- Project Name: