I am interested if the below mention select can be written in a mongoose query API style, for example:
SessionModel.findOne().where({ token: token}).and() ...
or
SessionModel.findOne().where('token').equals(token).and().where('status').nin(['blocked', 'deleted'])
Select Statement:
SELECT * FROM session WHERE token = :token and (status != 'deleted' OR status != 'blocked');