ethanresnick / json-api

Turn your node app into a JSON API server (http://jsonapi.org/)
GNU Lesser General Public License v3.0
268 stars 41 forks source link

MongooseAdapter won't work with documents that use something other than an ObjectId in their _id field #80

Open carlbennettnz opened 9 years ago

carlbennettnz commented 9 years ago

As explained in this tutorial, a Mongo _id field can contain anything as long as it's unique. The MongooseAdapter assumes in a few places that it will always contain an ObjectId.