Using Mongo / BSON ObjectId with Parse Server

喜夏-厌秋 提交于 2019-12-23 01:42:14

问题


I currently have a project that's being migrated away from Parse Server but needs to maintain backwards compatibility.

Since Parse Server generates it's own object Ids, rather than using Mongo's I'd like to know:

  • How does Parse Server generate it's objectIds?

  • and why does it do this when MongoDB has great objectId generation natively?

  • Will parse be able to work with objects with non-Parse generated IDs?

An example:

_id: "LvIzxv5spL"                // created by Parse Server
_id: "507f1f77bcf86cd799439011"  // BSON.ObjectId created by MongoDB directly

Thanks for reading, any help would be greatly appreciated! Cheers :)

edited for brevity

来源:https://stackoverflow.com/questions/43874830/using-mongo-bson-objectid-with-parse-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!