Get data in a sensible format...

29 views
Skip to first unread message

alex...@gmail.com

unread,
Sep 25, 2013, 3:47:51 PM9/25/13
to hel...@googlegroups.com
The following code:

pool.cql("SELECT model_id FROM products WHERE product_id = ?",[1], function(err, results){
sys.puts(util.inspect(results));
response.write("success");
});

gives me

[ <Row: Key: ' ', ColumnCount: 1, Columns: [ 'model_id' ]> ]

Why is it not giving me the list of rows with their content??

Russell Bradberry

unread,
Oct 8, 2013, 11:52:34 AM10/8/13
to hel...@googlegroups.com, alex...@gmail.com
You should be using the `row.forEach` method rather than util.inspect. 
Reply all
Reply to author
Forward
0 new messages