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
Post a Comment