javascript - Is there any workaround to the Mongo _id field type limitation? -


i using meteor pre-existing database uses custom objects in _id field. have defined structure meteor this:

_id: {     type: object,     label: "id" },  "_id.templateid" : {     type: string,     label: "template id",     optional: false },  "_id.locale": {     type: string,     optional: false }, 

however, when try use collection, error stating "meteor not support objects other objectid ids."

is there workaround allow me use collection in meteor without having change existing database?

you trying use object literal id composition, meteor supports string , objecid string preferable because every package rely on id information assume strings.

also, built in accounts system cannot work other simple string id's.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -