Currently if we want to manipulate the object and set some of it's fields we need to deconstruct it using `map` or `keys`. The use case is to allow writing more sophisticated function manipulation. Eg something we could write in JS: ``` function (doc1, doc2) { doc1.inner.key = doc2.inner.key2 return doc1 } ``` #### Proposal: `set` method, which will manipulate an object: ``` doc1.inner.set(key, val) ```
Activity
coffeemug commentedon Jul 21, 2014
Closing in favor of #2692, which supersedes this issue.
FYI, you could currently use the
mergecommand as follows:This will get a lot easier once #2692 is implemented.