On 12 Aug 2015, at 11:17, Esteban Lorenzano <estebanlm@gmail.com> wrote:On 12 Aug 2015, at 10:56, phil@highoctane.be wrote:I had that issue and fixed it in the OID class which gave a wrong id. IIRC...
Afk now but will look for it and send the fix.
you are a contributor infeel free to commit your changes there.And check the issue tracker:thanks,EstebanPhil
Le 12 ao��t 2015 09:44, "Sabine Manaa" <manaa.sabine@gmail.com> a ��crit :Hi,
on mongo console, this brings me a persons information from mongo db
db.Persons.find({"_id" : ObjectId("75b900000000000000000000")})
I try to query the same person from pharo and I do not succeed.
This makes my image hanging:
RKAPerson selectMany: {('_id' -> (OID value:'75b900000000000000000000'))}
also other variations e.g.
RKAPerson selectMany: {('_id' -> ('75b900000000000000000000')). }
asDictionary.
do not work
Other queries like
RKAPerson selectMany:{('lastName' -> ('Maier')).} asDictionary.
or
RKAPerson selectMany:{('nextTripNumber' -> (57)).} asDictionary.
work fine.
How can I query for an object with the object id?
Regards
Sabine
--
View this message in context: http://forum.world.st/Mongo-find-object-by-id-tp4842231.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.