Hi,the solution to my initial issue is to create a class MyClass with two class side methodsMyClass class >> isVoyageRoot^ trueMyClass class >> descriptionContainer�� �� <voyageContainer>�� �� ^ VOContainer new�� �� �� �� collectionName: 'myCollection';�� �� �� �� yourselfAlso, to properly read the data one should add instance variables to depending on what is in the database. For example:{ "_id" : ObjectId("5900a0175bc65a2b7973b48a"), "item" : "canvas", "qty" : 100, "tags" : [ "cotton" ] } In this case MyClass should have instanceVariables: 'item qty tags' and accessors.Plus, on the class sidemongoItem<mongoDescription>^ VOToOneDescription newattributeName: 'item';kind: String;yourselfmongoQty<mongoDescription>^ VOToOneDescription newattributeName: 'qty';kind: Integer;yourselfmongoTags<mongoDescription>^ VOToOneDescription newattributeName: 'tags';kind: OrderedCollection;yourselfAfter that one can connect to database and get the information.| repository |��repository := VOMongoRepository database: 'databaseName'.repository selectAll: MyClassBig thanks to Sabine, Esteban and Holger!Cheers,Mark2017-04-30 19:20 GMT+02:00 Sabine Manaa <manaa.sabine@gmail.com>:Happy to help. I got this information from Udo Schneider in slack several weeks ago.As far as I know, he works on an update for several things concerning mongo but I don't know when he will release it.chrismihaylyk [via Smalltalk] <[hidden email]> schrieb am So. 30. Apr. 2017 um 16:45:Sabine, thank you very much! It's very helpful, work fine.2017-04-30 17:09 GMT+03:00 Sabine Manaa <[hidden email]>:Khrystyna ,I also use a new version of mongo with authentication (but only old version) and wired Tiger.I am not sure but possibly you can try to overwrite the following method to fix the problem:MongoDatabase>>collections| reply names |��reply := self command: {(#listCollections -> 1)} asDictionary.names := ((reply at: 'cursor') at: 'firstBatch') collect: [ :each | each at: #name ].^ names collect: [ :each | MongoCollection database: self name: each ]2017-04-30 12:24 GMT+02:00 Mark Rizun [via Smalltalk] <[hidden email]>:Markonce you have a solution could you post it because I would like to add your question to the voyage chapter.stefSure thing, Stef.��
If you reply to this email, your message will be added to the discussion below:http://forum.world.st/Voyage-collecting-data-from-Mongo-tp49 44784p4944944.html To start a new topic under Pharo Smalltalk Users, email [hidden email]
View this message in context: Re: Voyage - collecting data from MongoIf you reply to this email, your message will be added to the discussion below:To start a new topic under Pharo Smalltalk Users, email [hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML
View this message in context: Re: Voyage - collecting data from Mongo
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.