Sabina

you know what I would really love from you ....
this is that you reread the Voyage chapter and make a list of the problems you faced and that are not described in the chapter.
You can write it in any bad ways and we can do a edit phase after,

Why do I ask that? Because I'm stupid in Mongo and I would love to have a good doc.
And only the people facing the problems can spot them nicely.
I often write doc on things that I do not know but this is not working well because I'm slow in that case and .... I could be much better
doing something else where I'm good at.

Stef

Le 12/8/15 09:40, Sabine Manaa 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.




Reply via email to