i'd need to override the remote method find in llopback. i tried this in my model:
'usestrict';
module.exports = function(Movimenti) {
Movimenti.once('attached', function(obj) {
Movimenti.find = function(filter, empty, cb) {
cb(null, this.find({
"where": {
"mov_utente_fk": 2
}
}));
}
});
};
but i get this error:
500 Maximum call stack size exceeded
could you help me??