LearnBoost/mongoose — Issue #735: $pull doesn't work on embedded object.
Author: jeremys
Created: 2012-02-14 16:50:45+00:00
State: open

See reproducible code here: https://gist.github.com/d45018ef1933b23d35c3

When using directly mongo driver:

Post.collection.update({ 'comments.name': com.name }, { $pull: { 'comments': { 'name': com.name } } }, function(err) {});

It works fine.