I am using the mongo-cpp driver trying to convert the object ID of a BSON object to a string I am sure that the BSONObj has valid data but getting the following error BSONElement: bad type #somenumber ##Can you suggest any method to get the object id in string format ? |
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/lTQmULrioP0J.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.