アトミックな「$push」と「$set」に対する MongoMapper の組み込みサポートをうまく使用していますが、「$pull」を理解できません。
class Feed
include MongoMapper::Document
many :stories
end
class Story
include MongoMapper::EmbeddedDocument
key :title, String
end
feed = Feed.first
story = Story.new(:title => "Hello, world!")
Feed.push(feed.id, :stories => story.to_mongo) #works fine
Feed.set({:_id => feed.id, "stories.title" => "Hello, world!"}, "stories.$.title" => "Foo") #works fine
Feed.pull( ??? )
プルを使用してストーリーをアトミックに削除するにはどうすればよいですか?