You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am afraid to do this for the security implications... However I have
begun implementing a JS language extension using Sweet.js to allow for
mongoose calls to be made from the client... It would compile a server
side component and client side transparently.
//client code;
var @user = new @mongoose.model('User');
var localVar = 'stuff', user;
$('input[type="name"]').on('click', function(){
//this would be wrapped in a rest call. @user.findById(localVar).exec(function(e,o){
$('#update').text(user.name);
});
});
Something like this:
I'd like to be able to write my logic mainly on the client, rather than dealing with finders. Is this a feature you are willing to add?
The text was updated successfully, but these errors were encountered: