<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:43 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-631] add $ tilde operator for dynamic index entry</title>
                <link>https://jira.mongodb.org/browse/SERVER-631</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;a way to change the value of items in the right array element, where element to match is based on some condition.&lt;/p&gt;

&lt;p&gt;perhaps this is not the most generalized form, nor the write name - to be discussed.&lt;/p&gt;

&lt;p&gt;see &lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/58951cdf45c57e38/a37bfe469292b9fc?hl=en&amp;amp;lnk=gst&amp;amp;q=obtain+index#a37bfe469292b9fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/58951cdf45c57e38/a37bfe469292b9fc?hl=en&amp;amp;lnk=gst&amp;amp;q=obtain+index#a37bfe469292b9fc&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="11297">SERVER-631</key>
            <summary>add $ tilde operator for dynamic index entry</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="dwight@mongodb.com">Dwight Merriman</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Feb 2010 07:26:29 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:43 +0000</updated>
                            <resolved>Tue, 9 Mar 2010 21:25:52 +0000</resolved>
                                                    <fixVersion>1.3.4</fixVersion>
                                                        <votes>25</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="12897" author="dwight_10gen" created="Wed, 10 Mar 2010 14:02:47 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.mongodb.org/display/DOCS/Updating#Updating-The%24positionaloperator&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Updating#Updating-The%24positionaloperator&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12878" author="auto" created="Tue, 9 Mar 2010 21:25:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: turn tests back on for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-631&quot; title=&quot;add $ tilde operator for dynamic index entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-631&quot;&gt;&lt;del&gt;SERVER-631&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/9172d692cd57624902443e93c3b571734b97d23a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/9172d692cd57624902443e93c3b571734b97d23a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12877" author="auto" created="Tue, 9 Mar 2010 21:25:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: use .$ instead of .~ for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-631&quot; title=&quot;add $ tilde operator for dynamic index entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-631&quot;&gt;&lt;del&gt;SERVER-631&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/bca88a8001e471b85af0787a39300d3ae2fa29f8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/bca88a8001e471b85af0787a39300d3ae2fa29f8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12876" author="eliot" created="Tue, 9 Mar 2010 21:20:28 +0000"  >&lt;p&gt;need to change to $ so we don&apos;t add another escape chacter&lt;/p&gt;</comment>
                            <comment id="12773" author="auto" created="Sat, 6 Mar 2010 22:13:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: array match value mod update( &lt;/p&gt;
{a.x : 5 }
&lt;p&gt; , &lt;/p&gt;
{ a.~.y ... }
&lt;p&gt; ) &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-631&quot; title=&quot;add $ tilde operator for dynamic index entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-631&quot;&gt;&lt;del&gt;SERVER-631&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/d3da0d7bbc6ace93df2eecdc3d5862b8e5cac154&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/d3da0d7bbc6ace93df2eecdc3d5862b8e5cac154&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12462" author="jnunemaker" created="Mon, 22 Feb 2010 19:32:15 +0000"  >&lt;p&gt;@Dwight Yep, the first one  is what I mean. The problem with the second example is I don&apos;t know the index of the comment, so I can&apos;t do comments.0, I believe.&lt;/p&gt;</comment>
                            <comment id="12456" author="dwight_10gen" created="Mon, 22 Feb 2010 18:14:56 +0000"  >&lt;p&gt;@John assume you mean just update the whole sub-object?  hopefully that would work as something like:&lt;/p&gt;

&lt;p&gt;  t.update( &lt;/p&gt;
{comments._id:...}
&lt;p&gt;, { $set : &lt;/p&gt;
{ &quot;comments.~&quot; : &amp;lt;fullnewobject&amp;gt; }
&lt;p&gt; })&lt;/p&gt;

&lt;p&gt;I think somethign like this already works with the latest code:&lt;/p&gt;

&lt;p&gt;t.update(  ..., { $set : { &quot;comments.0&quot;  : &lt;/p&gt;
{ _id : 3, a : 3, b : 4, c : 5 }
&lt;p&gt; } }  )&lt;/p&gt;</comment>
                            <comment id="12331" author="jnunemaker" created="Tue, 16 Feb 2010 13:54:13 +0000"  >&lt;p&gt;It would also be nice to just update the whole object.&lt;/p&gt;

&lt;p&gt;update( &lt;/p&gt;
{comments._id: ...}
&lt;p&gt;, {_id: ..., name: &apos;John&apos;, body: &apos;Pants on the ground&apos;, ...}&lt;/p&gt;

&lt;p&gt;We embed comments in posts, but also allow updating comment information by blog authors. Would be handy to just replace the whole matching object. We also do the same thing with Templates and Fields. Fields are embedded (array of hashes) and being able to update one field in place in the array would be great.&lt;/p&gt;</comment>
                            <comment id="12325" author="eliot" created="Tue, 16 Feb 2010 09:56:37 +0000"  >&lt;p&gt;should work with $unset also&lt;/p&gt;</comment>
                            <comment id="12286" author="dwight_10gen" created="Fri, 12 Feb 2010 22:07:27 +0000"  >&lt;p&gt;we could do something like&lt;/p&gt;

&lt;p&gt;  update( &lt;/p&gt;
{members.name : &quot;Freddy&quot;, ...}
&lt;p&gt;, { $set : &lt;/p&gt;
{ &quot;members.~.name&quot; : &quot;Fred&quot; }
&lt;p&gt; } )&lt;/p&gt;

&lt;p&gt;here &apos;~&apos; means &quot;the array element(s) that were matched by the query expression&quot;.&lt;/p&gt;

&lt;p&gt;one nice thing with this approach is it would work with $push, $inc, etc.&lt;/p&gt;</comment>
                            <comment id="12279" author="colinmollenhour" created="Fri, 12 Feb 2010 12:49:53 +0000"  >&lt;p&gt;Syntax proposal:&lt;/p&gt;

&lt;p&gt;{ &quot;$update&quot;:&lt;br/&gt;
  { &quot;members.name&quot;: &lt;/p&gt;
{ &quot;from&quot;:&quot;Freddy&quot;,&quot;to&quot;:&quot;Fred&quot; }
&lt;p&gt; }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;{ &quot;$update&quot;:&lt;br/&gt;
  { &quot;members.name&quot;: &lt;/p&gt;
{ &quot;from&quot;:/^Fred/,&quot;to&quot;:&quot;Fred&quot; }
&lt;p&gt; }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;{ &quot;$updateIn&quot;:&lt;br/&gt;
  { &quot;members.name&quot;: &lt;/p&gt;
{ &quot;from&quot;:[&quot;Freddy&quot;,&quot;Frank&quot;],&quot;to&quot;:&quot;Fred&quot; }
&lt;p&gt; }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Using example documents from the google groups thread.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 12 Feb 2010 12:49:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 50 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 50 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>colinmollenhour</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jnunemaker</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrprtj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrincn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22435</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0k8f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>