Sabine Knöfel wrote
> db.bios.update(
> { _id: 1 },
> {
> $set: { 'name.middle': 'Warner' },
> }
> )
Hi, the MongoTalk equivalent of this is:
what := { 'name.middle' -> 'Warner' } asDictionary.
self bios
update: { '_id' -> 1 } asDictionary
with: { '$set' -> what } asDictionary.
you can set multiple attributes, of course:
what := { 'attr1' -> 'value1' . 'attr2' -> 'value2' } asDictionary.
JS.
-----
Save The World!
--
View this message in context:
http://forum.world.st/does-MongoTalk-implement-modifier-operators-e-g-set-tp4675511p4675838.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.