I am using Node.js with Helenus to connect to a Cassandra DB.
I have a query: SELECT score FROM team_scores WHERE team_name = 'foo'
When run from cqlsh, I get results that look like this:
score
-------
10
I then move the query over to Node and Helenus using cqlVersion 3.0.0. When I run this code:
pool.cql("SELECT score FROM team_scores WHERE team_name = 'foo'", function(err, results){
console.log(results);
});
The console reports:
[ <Row: Key: 'foo', ColumnCount: 1, Columns: [ 'score' ]> ]
What am I missing to get Helenus to return me the actual value of score rather than whatever it seems to be returning?