Answer the question
In order to leave comments, you need to log in
How to change field name in sails js when executing .find()?
Hello, actually the question is clear. I want to find an analogue of AS in .find() , but the search was not successful. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Hello.
I'm not sure what will work, but try using AS in Model.query like
User.query('SELECT email, username AS name FROM users WHERE id = 10;', function (err, users) {
console.log(users);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question