我正在尝试将 mongoid 与 Rails 4.1.0 应用程序一起使用,并且在 moongodb 2.6.0 上收到错误 17287(与早期版本的 mongodb 上的 10068 相同)。这是错误消息:
The operation: #<Moped::Protocol::Query @length=127 @request_id=5 @response_to=0 @op_code=2004 @flags=[] @full_collection_name="educandose_development.users" @skip=0 @limit=-1 @selector={"$query"=>{"_id"=>{"$oid"=>BSON::ObjectId('534d6f4f6372618443000000')}}, "$orderby"=>{:_id=>1}} @fields=nil> failed with error 17287: "Can't canonicalize query: BadValue unknown operator: $oid" See https://github.com/mongodb/mongo/blob/master/docs/errors.md for details about this error.
知道可能出了什么问题吗?