mark��what is such collection?StefOn Fri, Apr 28, 2017 at 11:04 PM, Holger Freyther <holger@freyther.de> wrote:
> On 28. Apr 2017, at 14:27, Mark Rizun <mrizun@gmail.com> wrote:
>
> Hi,
Hi!
> Is it possible to retrieve data from Mongo collection if it was not created
> via Voyage?
> Meaning that I do not have a class in Pharo that would correspond to said
> collection (should I implement one?).
Yes. But you probably need to customize a bit.
1.) Make sure you refer to the right collection...
descriptionContainer
�� �� �� �� <mongoContainer>
�� �� �� �� ^VOMongoContainer new
�� �� �� �� �� �� �� �� collectionName: 'yourExistingCollectionName'
�� �� �� �� �� �� �� �� yourself
2.) For materialization.. you should at least have
�� �� �� �� _id (okay every entry does that)
�� �� �� �� VOMongoSerializer fieldVersion (#version on my old Voyage)
�� �� �� �� VOMongoSerializer fieldType (#instanceOf)
and then things should work out. You can probably add #version and #instanceOf to your existing objects?
holger