moleculerjs/moleculer-db

GET Max Value of some field

sachinda123456 opened this issue · 1 comments

I need to calculate max value of number field . I used sequelize adeptor . If there any method to get max value with out executing row query
with using this.adapter or any thing else

You can reach the Sequelize instance via this.adapter.db and the model via this.adapter.model. With them, you can make aggregation directly with Sequelize.