<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:53 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>[JAVA-1143] Add modifiedCount as a property of the com.mongodb.WriteResult class</title>
                <link>https://jira.mongodb.org/browse/JAVA-1143</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently the Java driver doesn&apos;t return nModified at all for the existing DBCollection.update method.  The WriteResult class doesn&apos;t expose it at all, so it&apos;s not available.  &lt;/p&gt;

&lt;p&gt;However, we should consider it.  Since the new BulkWriteResult class has the method:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;isModifiedCountAvailable&lt;/li&gt;
	&lt;li&gt;getModifiedCount&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;we could add these same methods to WriteResult (or a new subclass of it, UpdateResult).&lt;/p&gt;</description>
                <environment></environment>
        <key id="118784">JAVA-1143</key>
            <summary>Add modifiedCount as a property of the com.mongodb.WriteResult class</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="barrie">Barrie Segal</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Mar 2014 17:41:01 +0000</created>
                <updated>Fri, 23 Jun 2017 15:32:06 +0000</updated>
                            <resolved>Fri, 23 Jun 2017 15:32:06 +0000</resolved>
                                                                    <component>API</component>
                    <component>Write Operations</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1021968" author="gforget" created="Thu, 3 Sep 2015 19:49:22 +0000"  >&lt;p&gt;Ah I hadn&apos;t noticed that the new MongoCollection uses different classes for their return value. In that case, I&apos;ll be fine as I plan to switch to the new classes soon. &lt;/p&gt;</comment>
                            <comment id="1021247" author="jeff.yemin" created="Thu, 3 Sep 2015 01:23:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gforget&quot; class=&quot;user-hover&quot; rel=&quot;gforget&quot;&gt;gforget&lt;/a&gt;, this is the only ticket I know of.  It&apos;s not going to make it into 3.1, and in general, we&apos;re less likely to add new features to DBCollection now that MongoCollection is available.&lt;/p&gt;</comment>
                            <comment id="1021201" author="gforget" created="Wed, 2 Sep 2015 23:58:49 +0000"  >&lt;p&gt;@Jeff is there a ticket to upgrade the WriteResult object to expose the new fields? I couldn&apos;t find it and I see that it isn&apos;t planned for 3.1 yet&lt;/p&gt;</comment>
                            <comment id="512052" author="jeff.yemin" created="Sat, 8 Mar 2014 20:30:18 +0000"  >&lt;p&gt;Currently the Java driver doesn&apos;t return nModified at all for the existing DBCollection.update method.  The WriteResult class doesn&apos;t expose it at all, so it&apos;s not available.  &lt;/p&gt;

&lt;p&gt;However, we should consider it.  Since the new BulkWriteResult class has the method:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;isModifiedCountAvailable&lt;/li&gt;
	&lt;li&gt;getModifiedCount&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;we could add these same methods to WriteResult (or a new subclass of it, UpdateResult).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgaf3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8592</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>