Ember-data and MongoDB, how to handle _id

后端 未结 9 1981
眼角桃花
眼角桃花 2021-02-08 17:15

I\'m using ember-data with rails and MongoDB and am having problem with the way IDs are stored in MongoDB - in a _id field.

Ember-data will use id as the default field f

9条回答
  •  再見小時候
    2021-02-08 17:49

    If you use Mongoid3, here is the monkey patch may work for you.

    https://gist.github.com/4700909

提交回复
热议问题