const where = {
office_no: 1999,
status: 'APPLY,
[Op.and]: [
Sequelize.literal(`${property_master_no} member of (request_json->'$.property[*].property_master_no')`)
]
}
if (document_no) {
where['no'] = {
[Op.not]: document_no
}
}
I want to make [if] in [const where].
Sorry. I don’t have any idea. 🙂