Hi.
Thank you of quick reply. After the driver change it worked.
I have one last query,
I have an CQL query such as, select * from testing where salary < ? and salary > ? allow filtering;
I think I have an issue in my repository code, kindly correct me if possible,
In server.js my code is,
app.get('/v1/details/sal1/:sal1/sal2/:sal2', function (req, res, next) {
repository.salary(req.params.sal1,req.params.sal2,function (err, sal) {
if (err) return next(err);
res.json(sal);
});
});
In repository.js my code is,
Repository.prototype.salary = function (sal1,sal2, callback) {
var query = cql.salary;
this.client.execute(query,[sal1],[sal2], { prepare: true }, function (err, result) {
if (err) return callback(err);
callback(null, result.rows);
});
};
Thanks.