S
S
saqo_tadevosyan2020-11-24 12:41:00
ORM
saqo_tadevosyan, 2020-11-24 12:41:00

How to get data based on conditions?

I get data using sequelize, I need to get from the database only those rows where amount>0, for example, what should I add to where?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-11-24
@saqo_tadevosyan

{ amount: { [Op.gt]: 0 } }
https://sequelize.org/master/manual/model-querying...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question