I just try to add smart segment on my collection:
collection('client', {
actions: [],
fields: [],
segments: [{
name: 'Provider',
where: async () => {
console.log('ok');
return {"id": { $in: ['1'] } };
}
}]
});
But I don’t see my segment Provider on the interface when I restart my development server. I don’t know why. In addition, there is no log “ok”.
Do I miss something ?
Expected behavior
I want to add “Client” segment on my forest interface.
Actual behavior
I see nothing
Failure Logs
No failure log
Context
Please provide any relevant information about your setup.
- Package Version: 6.0.0
- Express Version: 4.17.1
- Sequelize Version: Mongoose
- Database Dialect: Mongo
- Database Version: 4.0.2
- Project Name: