Is there a way to access the models in the sails by the name contained in the string?
for example, if I want to create a user, instead of doing
User.create({name: 'martin'});
I need to do something like
sails['User'].create({name: 'martin'});
source
share