// many-to-many association
// Adding pet.id:20 into user
user.pets.add(20);
user.save(function(err,s){
// Inefficient
Pet.findOne(20).exec(function(err, pet){
})
});
Is there a way to refer to the pet that I have just added the association to? It's inefficient to do a pointless query, because s returns the object that has just been saved. it would be useful if there is a way to reference the pet by doing something like s.pets(whatever).