<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:19 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-1325] Implement new API for queries and updates for async MongoClient </title>
                <link>https://jira.mongodb.org/browse/JAVA-1325</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Bring async client API in line with sync client API.&lt;/p&gt;</description>
                <environment></environment>
        <key id="150230">JAVA-1325</key>
            <summary>Implement new API for queries and updates for async MongoClient </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="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Jul 2014 13:08:32 +0000</created>
                <updated>Fri, 4 Nov 2016 18:11:04 +0000</updated>
                            <resolved>Mon, 17 Nov 2014 17:30:28 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="818008" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:45:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Updating the rxJava API to mirror the async API&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1325&quot; title=&quot;Implement new API for queries and updates for async MongoClient &quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1325&quot;&gt;&lt;del&gt;JAVA-1325&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2cbb197e43454c2f0a87183ae2c4be77659328ad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2cbb197e43454c2f0a87183ae2c4be77659328ad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="818007" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:45:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Updating the Async API to mirror the sync API&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1325&quot; title=&quot;Implement new API for queries and updates for async MongoClient &quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1325&quot;&gt;&lt;del&gt;JAVA-1325&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	driver/src/main/com/mongodb/FindFluentImpl.java&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ea546524078c6b907bebbca91d21fe9076b2ac73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ea546524078c6b907bebbca91d21fe9076b2ac73&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="767482" author="nscavell" created="Tue, 18 Nov 2014 23:47:51 +0000"  >&lt;p&gt;How does one do a findOne with the new API ?&lt;/p&gt;</comment>
                            <comment id="767192" author="nscavell" created="Tue, 18 Nov 2014 18:54:27 +0000"  >&lt;p&gt;Ahh ok, I guess I was looking at the legacy stuff (DBCollection). I haven&apos;t really looked at the sync stuff yet.&lt;/p&gt;</comment>
                            <comment id="766755" author="ross@10gen.com" created="Tue, 18 Nov 2014 10:12:00 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nscavell&quot; class=&quot;user-hover&quot; rel=&quot;nscavell&quot;&gt;nscavell&lt;/a&gt; for the comments.&lt;/p&gt;

&lt;p&gt;I&apos;m sorry to drop such a large change to the old sync api - but now we should be fully up to date and we will work to keep them in sync, now the api&apos;s are being finalised.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Why no save?&lt;/b&gt; For a couple of reasons, but primarily because it doesn&apos;t do what people wanted or expect and as such it has caused users a number of issues.  Replacing the whole document rather than using atomic updates is generally not what users wanted and as such it was decided it would not be implemented in new crud api - which is being bought out across drivers.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;executeCommand result type&lt;/b&gt; - good catch, I&apos;ve added &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1561&quot; title=&quot;allow executeCommand to return the type of a provided class&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1561&quot;&gt;&lt;del&gt;JAVA-1561&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1562&quot; title=&quot;Allow getIndexes to return a list of a provided class&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1562&quot;&gt;&lt;del&gt;JAVA-1562&lt;/del&gt;&lt;/a&gt; to cover two places where we&apos;ve missed the possibility of returning a custom type.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Differences to the shell for delete / remove&lt;/b&gt; - Sync and Async should mirror, so they both have &lt;tt&gt;deleteOne&lt;/tt&gt; and &lt;tt&gt;deleteMany&lt;/tt&gt;.  The plan for the shell is to be updated and to reflect the drivers and the crud api - although that is likely to happen post 2.8.&lt;/p&gt;
</comment>
                            <comment id="766418" author="nscavell" created="Mon, 17 Nov 2014 21:59:34 +0000"  >&lt;p&gt;Another comment: s/delete/remove. Wouldn&apos;t this be more consistent with the sync and shell remove operations ?&lt;/p&gt;</comment>
                            <comment id="766332" author="nscavell" created="Mon, 17 Nov 2014 20:38:16 +0000"  >&lt;p&gt;Another comment: Support for codec for executeCommand on MongoDatabase (I can create separate JIRA&apos;s, but just wanted to file them here for now until a +1)&lt;/p&gt;</comment>
                            <comment id="766312" author="nscavell" created="Mon, 17 Nov 2014 20:26:43 +0000"  >&lt;p&gt;Awesome, first comment: Why no save ?&lt;/p&gt;</comment>
                            <comment id="766062" author="xgen-internal-githook" created="Mon, 17 Nov 2014 17:28:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Updating the rxJava API to mirror the async API&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1325&quot; title=&quot;Implement new API for queries and updates for async MongoClient &quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1325&quot;&gt;&lt;del&gt;JAVA-1325&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2cbb197e43454c2f0a87183ae2c4be77659328ad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2cbb197e43454c2f0a87183ae2c4be77659328ad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="766061" author="xgen-internal-githook" created="Mon, 17 Nov 2014 17:28:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Updating the Async API to mirror the sync API&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1325&quot; title=&quot;Implement new API for queries and updates for async MongoClient &quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1325&quot;&gt;&lt;del&gt;JAVA-1325&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	driver/src/main/com/mongodb/FindFluentImpl.java&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ea546524078c6b907bebbca91d21fe9076b2ac73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ea546524078c6b907bebbca91d21fe9076b2ac73&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="758029" author="nscavell" created="Thu, 6 Nov 2014 18:43:15 +0000"  >&lt;p&gt;So I see this marked as 3.0 desired, but I don&apos;t really see how the async client API can be used effectively with a custom codec. Any way I can help move this forward ? &lt;/p&gt;

&lt;p&gt;I&apos;m finding out that update and replace on upsert generates an ObjectId because it uses the DocumentCodec instead of my custom CollectibleCodec.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="166220">JAVA-1526</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>JAVA-774</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg9xj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8506</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="338">Java Sprint 11</customfieldvalue>

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