几天前我在sailsjs工作。select,distinct在sailsjs中不起作用
我只是无法弄清楚为什么我的sailsjs应用程序不支持select或distinct,它说这不是defind。
我错过了什么吗?
请有人帮我弄清楚这一点。
我试试这个
Blog.find().select('keyfield').sort('createdAt DESC').done(function(err, selectedKeyfield) {
res.view('home/index',{
Keyfield: selectedKeyfield
});
预先感谢您....
只是为了澄清:是'mysql'你正在使用的适配器? – bredikhin
不,我使用帆mongo – Lucifer