fortune-mongodb
fortune-mongodb copied to clipboard
MongoDB adapter for Fortune.
TODOs
Mostly new features: - [x] Implement `beginTransaction` and `endTransaction` ~~using the `$isolated` operator. It doesn't provide rollbacks but it's better than nothing.~~ Using native implementation for MongoDB 4.0+
Related to #5; if the ID field is an ObjectID, find fails. For example: http://localhost:1337/foo/59c84caa76f5f2066ae21d9a http://localhost:1337/foo/_bsontype,ObjectID,id,Y%EF%BF%BDL.... The id field is always treated as a string in the resulting query. https://github.com/fortunejs/fortune-mongodb/blob/7e8c6264d4f1b92d51878bd5fb9c1063d0831e00/lib/index.js#L122...
Did an update form an older version of fortune-mongodb to the latest version, and it appears that there has been a backwards incompatible(ish) change that the ID field returned in...