On 07/03/13 5:51 AM, Sabine Knöfel wrote:

So, can anyone give me a code snippet how to use update modifiers in
Mongotalk?

Here's a similar question:

http://lists.gforge.inria.fr/pipermail/pharo-project/2012-November/071675.html

The link is to the end of the thread. The relevant text is: "that's how the driver works: is document-atomic".

So, your Person object is a document, and the MongoDB driver reads/writes each document all at once (i.e. all the Person attributes together). You cannot update a Person attribute individually using a Mongo update, unless you write custom code.



Reply via email to