BSONObjectID vs String ids
By default Mongo handles ids in ObjectID format which takes less space and is faster to process but in the current sprest id type is string and if in database ids are in ObjectID type sprest returns empty variables.
Yes, good question. I need to store IDs in ObjectID and it seems there is not way to do that now.
It will be very nice if we could have an implicit conversion of BSONObjectID to scala string
I have submitted the issue 8 months ago. It does not seam that developers are going to implement it yet if that is the case an explanation or at least "wont fix" tag would be nice. I would try and implement it my selfe yet I am using this library so that I would not have to deal with original libraries convertion problems... I will be using this library in short while so I may be forced to deal this the issue again.
On Fri, Dec 19, 2014 at 12:42 PM, binkabir [email protected] wrote:
It will be very nice if we could have an implicit conversion of BSONObjectID to scala string
— Reply to this email directly or view it on GitHub https://github.com/markschaake/sprest/issues/17#issuecomment-67623166.
Pagarbiai, Povilas Sidaravičius
M: +37062356228 | E: [email protected] | Skype: povilasid
I will leave this issue open in case you or someone else wished to issue a pull request to resolve it. I personally do not have time (or a need) to do this.