The following code returns id, title and content fields. I need only id and title.
db.laws.search({columns: ["title", "content"], term: req.params.text}, function(err,laws){
res.contentType('application/json');
res.send(JSON.stringify(laws));
});
I need and an equivalent of "select id, title from laws where...". I can not find anything in the docs.
I would like to avoid a for loop to filter out unwanted columns, it is less efficient.
As you can see in the massive.js code, you have not option for remove
idfrom result row insearchmethod. My advice is useInline SQL