<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:39:54 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>[DOCS-957] findAndModify 2.2 Release Notes Unclear on the Command&apos;s Response</title>
                <link>https://jira.mongodb.org/browse/DOCS-957</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/2.2/#findandmodify-returns-null&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/release-notes/2.2/#findandmodify-returns-null&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/findAndModify/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/command/findAndModify/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Behavior outlined is incorrect... claims null returned always (or the odd ok: 1.0 hash), but this isn&apos;t the case and the correct behavior is more akin to what one would expect. &lt;/p&gt;

&lt;p&gt;&amp;gt; db.t.findAndModify({query: &lt;/p&gt;
{name: &quot;Steve&quot;}
&lt;p&gt;, upsert: true, update: {name: &quot;John&quot;}})&lt;br/&gt;
null&lt;br/&gt;
&amp;gt; db.t.findAndModify({query: &lt;/p&gt;
{name: &quot;John&quot;}
&lt;p&gt;, upsert: true, update: {name: &quot;Johnny&quot;}})&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;50eb188773015b3832f64dda&quot;), &quot;name&quot; : &quot;John&quot; }
&lt;p&gt;&amp;gt; db.t.findAndModify({query: &lt;/p&gt;
{name: &quot;Tyler&quot;}
&lt;p&gt;, new: true, upsert: true, update: {name: &quot;Johnny&quot;}})&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;50eb18e473015b3832f64ddc&quot;), &quot;name&quot; : &quot;Johnny&quot; }
&lt;p&gt;&amp;gt; &lt;/p&gt;</description>
                <environment></environment>
        <key id="61191">DOCS-957</key>
            <summary>findAndModify 2.2 Release Notes Unclear on the Command&apos;s Response</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="spf13">Steve Francia</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Jan 2013 19:05:41 +0000</created>
                <updated>Mon, 7 Jan 2013 22:28:35 +0000</updated>
                            <resolved>Mon, 7 Jan 2013 19:38:14 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="233561" author="auto" created="Mon, 7 Jan 2013 22:28:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-07T20:33:27Z&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-957&quot; title=&quot;findAndModify 2.2 Release Notes Unclear on the Command&amp;#39;s Response&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-957&quot;&gt;&lt;del&gt;DOCS-957&lt;/del&gt;&lt;/a&gt;: clarification based on comments from @TylerBrock&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/62375e44edd27a76a437c287385c0d5c77643b87&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/62375e44edd27a76a437c287385c0d5c77643b87&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="233406" author="spf13" created="Mon, 7 Jan 2013 19:37:59 +0000"  >&lt;p&gt;reviewed. It looks right to me now.&lt;/p&gt;


&lt;p&gt;Best,&lt;br/&gt;
Steve&lt;br/&gt;
*&lt;br/&gt;
*&lt;br/&gt;
&lt;b&gt;--------------------------------&lt;/b&gt;&lt;br/&gt;
*&lt;br/&gt;
*&lt;br/&gt;
*&lt;/p&gt;
{ *name     : *&quot;**Steve Francia**&quot;, *
*  *title    : *&quot;*Chief Evangelist*&quot;*,
  twitter  : *&quot;*@spf13 &amp;lt;http://twitter.com/spf13&amp;gt;*&quot;*,
  web      : *&quot;*spf13.com*&quot;*,
  location : *&quot;*New York, NY*&quot;* *}
&lt;p&gt;*&lt;/p&gt;

&lt;p&gt;&amp;lt;&lt;a href=&quot;http://10gen.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10gen.com&lt;/a&gt;&amp;gt;&lt;/p&gt;


</comment>
                            <comment id="233399" author="samk" created="Mon, 7 Jan 2013 19:32:56 +0000"  >&lt;p&gt;Changes made in referenced commit&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spf13&quot; class=&quot;user-hover&quot; rel=&quot;spf13&quot;&gt;spf13&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tyler%4010gen.com&quot; class=&quot;user-hover&quot; rel=&quot;tyler@10gen.com&quot;&gt;tyler@10gen.com&lt;/a&gt;, and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=skot&quot; class=&quot;user-hover&quot; rel=&quot;skot&quot;&gt;skot&lt;/a&gt; could you please review?&lt;/p&gt;</comment>
                            <comment id="233397" author="spf13" created="Mon, 7 Jan 2013 19:31:40 +0000"  >&lt;p&gt;Totally understand and it&apos;s documenting the command inaccurately.&lt;/p&gt;

&lt;p&gt;I just reviewed it with Sam and he&apos;s now clear on what should be done. &lt;/p&gt;</comment>
                            <comment id="233394" author="auto" created="Mon, 7 Jan 2013 19:31:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-07T19:31:03Z&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-957&quot; title=&quot;findAndModify 2.2 Release Notes Unclear on the Command&amp;#39;s Response&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-957&quot;&gt;&lt;del&gt;DOCS-957&lt;/del&gt;&lt;/a&gt;: clarification behavior on upserts that turn into inserts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/6dc838ead0723fe79dfe76f647b2541d147ab15b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/6dc838ead0723fe79dfe76f647b2541d147ab15b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="233382" author="scotthernandez" created="Mon, 7 Jan 2013 19:20:15 +0000"  >&lt;p&gt;Steve, that is documenting the command, not the shell helper. There is a big difference... and maybe we can make that more clear for people who don&apos;t see that immediately.&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Jan 2013 19:20:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 6 weeks, 2 days 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>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 6 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>spf13</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrs4db:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>38646</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hryhiv:</customfieldvalue>

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