
Anonymous
Not applicable
2017-10-11
09:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MongoDB string to object Id
Hi,
I want 2 things:
1. I am doing a lookup with a master and want to bring the reference value and its objectId. The objectId is converted to string. Is there any way to convert string to object id type?
2. Any way to generate an object ID for nested objects?
Thanks in advance.
Ravinder
282 Views
1 Reply

Anonymous
Not applicable
2017-10-16
11:37 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please take a look at this article about:https://stackoverflow.com/questions/8503673/how-to-convert-string-into-objectid to see if it helps?
Best regards
Sabrina
282 Views
