I am running into the same problem. Let me try to explainI want the unique id to be string, so I can save in browser cookie and retrieve the object when the user comes back.
I would rather not use my own unique Id generation as I am not an expert and can possibly generate duplicates, thus messing up the system.If I use ObjectId as recommended, it creates a complex structure that I do not know how to store in the browser.I used ObjectId.getStringMongod() to convert it to a string value to store in cookie, however now I could not figure out a way to retrieve the object using this string value.Hope that clarifies the issue.
>> >>> >> > mongodb-user+unsubscribe@googlegroups.com
>> >>> >> > See also the IRC channel -- freenode.net#mongodb
>> >>> >>
>> >>> >> --
>> >>> >> You received this message because you are subscribed to the Google
>> >>> >> Groups "mongodb-user" group.
>> >>> >> To post to this group, send email to mongod...@googlegroups.com
>> >>> >> To unsubscribe from this group, send email to
>> >>> >> See also the IRC channel -- freenode.net#mongodb
>> >>> >
>> >>> >
>> >>> > --
>> >>> > You received this message because you are subscribed to the Google
>> >>> > Groups "mongodb-user" group.
>> >>> > To post to this group, send email to mongod...@googlegroups.com
>> >>> > To unsubscribe from this group, send email to
>> >>> > See also the IRC channel -- freenode.net#mongodb
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups "mongodb-user" group.
>> >>> To post to this group, send email to mongod...@googlegroups.com
>> >>> To unsubscribe from this group, send email to
>> >>> See also the IRC channel -- freenode.net#mongodb
>> >>
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "mongodb-user" group.
>> >> To post to this group, send email to mongod...@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> See also the IRC channel -- freenode.net#mongodb
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "mongodb-user" group.
>> > To post to this group, send email to mongod...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > See also the IRC channel -- freenode.net#mongodb
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "mongodb-user" group.
>> To post to this group, send email to mongod...@googlegroups.com
>> To unsubscribe from this group, send email to
>> See also the IRC channel -- freenode.net#mongodb
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> See also the IRC channel -- freenode.net#mongodb