<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:13:56 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>[CDRIVER-2027] Add mongoc_collection_find_one_with_opts()</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2027</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;There is an API called &lt;tt&gt;mongoc_gridfs_find_with_opts()&lt;/tt&gt; which counters &lt;tt&gt;mongoc_collection_find_with_opts()&lt;/tt&gt; for fetching files from a GridFS as opposed to documents from a collection. And there is a useful alternative called &lt;tt&gt;mongoc_gridfs_find_one_with_opts()&lt;/tt&gt; to fetch just one matching file. It seems like a helpful wrapper, and a user legitimately anticipates there is a sibling for a collection, but there&apos;s none...&lt;/p&gt;

&lt;p&gt;As a proposal of a new useful feature and a measure to eliminate API inconsistencies, a new API can be implemented to help fetching one result from a collection much like the aforementioned &lt;tt&gt;mongoc_gridfs_find_one_with_opts()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Taking into account the proposed optimizations for &lt;tt&gt;mongoc_gridfs_find_one_with_opts()&lt;/tt&gt;, the new API should be fairly easy to implement. Please refer to: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2026&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CDRIVER-2026&lt;/a&gt; for details.&lt;/p&gt;</description>
                <environment></environment>
        <key id="351676">CDRIVER-2027</key>
            <summary>Add mongoc_collection_find_one_with_opts()</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="neoxic">Arseny Vakhrushev</reporter>
                        <labels>
                    </labels>
                <created>Sat, 4 Feb 2017 02:07:42 +0000</created>
                <updated>Wed, 3 May 2017 22:14:16 +0000</updated>
                            <resolved>Mon, 13 Feb 2017 18:30:21 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1498065" author="neoxic" created="Mon, 13 Feb 2017 19:54:14 +0000"  >&lt;blockquote&gt;&lt;p&gt;Less code is better than more!&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Likewise, less inconsistency is better than more. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Anyways, your world - your rules, Jess! Thanks for your input.&lt;/p&gt;</comment>
                            <comment id="1497970" author="jesse" created="Mon, 13 Feb 2017 18:30:22 +0000"  >&lt;p&gt;Thanks Arseny. Since you&apos;re the only person to request this in the C Driver&apos;s years of life, and since you can simply do &quot;find_with_opts&quot; with limit 1 and singleBatch true, and since a &quot;findone&quot; is not required by the MongoDB CRUD API Spec, we won&apos;t implement this. Less code is better than more!&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|hsumlb:</customfieldvalue>

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