I have a User object which has many route objects.
I load them like:
return User.find(username).then(function(user) {
return User.loadRelations(user.username, ['routes'])
.then(function(user) {
return user;
});
});
I want to be able to go user.routes.push(newRoute) and then save the user. But I'm unable to push a new route.