我有这个 MongoDB 条目:
{"_id"=>BSON::ObjectId('527d17c9cef2ea265b000027'), "quote"=>"PERSUADERS. Spurs. The kiddey clapped his persuaders\r to his prad but the traps boned him; the highwayman\r spurred his horse hard, but the officers seized him."}
当我使用 Ruby 驱动程序获取此项目时,如下所示:
one = @db.collection('q').find_one({
"_id" => BSON::ObjectId("527d17c9cef2ea265b000027")
})
puts one['quote']
我只得到最后一个之后的输出\r
spurred his horse hard, but the officers seized him.
怎么来的?