<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:04 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>[CSHARP-2264] Find missing support for .min() and .max()</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2264</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;As far as I can tell, there is no easy way to execute a command like db.collection.find().min(lbound).max(ubound). Since I need those, I&apos;m forced to choose between executing the &quot;find&quot; command manually with RunCommand() (and then deal with parsing the response, managing the cursor, and deserializing the results myself) or maintaining a custom version of the driver.&lt;/p&gt;

&lt;p&gt;Please add support for the missing .min() and .max() functions. I suggest syntax like:&lt;/p&gt;

&lt;p&gt;collection.Find(...).Min(lbound).Max(ubound) to maintain parity with mongoDB,&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;collection.Find(...).Bound(lbound, ubound) to avoid potential confusion with min/max aggregates,&lt;/p&gt;

&lt;p&gt;or, if you think they&apos;re too obscure to belong on the fluent interface, they could be added to FilterOptionsBase.&lt;/p&gt;

&lt;p&gt;I&apos;ll note that min() and max() are not equivalent to (and can&apos;t be replaced by) a corresponding range filter on the index key because the filter is subject to type bracketing while min() and max() are not.&lt;/p&gt;

&lt;p&gt;See:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/cursor.min/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/method/cursor.min/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/cursor.max/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/method/cursor.max/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="539590">CSHARP-2264</key>
            <summary>Find missing support for .min() and .max()</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="3">Duplicate</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="admilazz">Adam Milazzo</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 May 2018 07:27:54 +0000</created>
                <updated>Mon, 26 Nov 2018 23:09:04 +0000</updated>
                            <resolved>Mon, 26 Nov 2018 23:09:04 +0000</resolved>
                                    <version>2.6.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2072258" author="jeff.yemin" created="Mon, 26 Nov 2018 23:08:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=admilazz&quot; class=&quot;user-hover&quot; rel=&quot;admilazz&quot;&gt;admilazz&lt;/a&gt; you can specify $min and $max fields in FindOptions.Modifiers.&#160; Making it more straightforward is the goal of &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1896&quot; title=&quot;Support deprecated &amp;quot;modifiers&amp;quot; FindOption in CRUD API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1896&quot;&gt;&lt;del&gt;CSHARP-1896&lt;/del&gt;&lt;/a&gt;, so I&apos;m going to resolve this as a duplicate.&lt;/p&gt;</comment>
                            <comment id="1967187" author="admilazz" created="Sun, 5 Aug 2018 18:46:02 +0000"  >&lt;p&gt;Created pull request:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/335&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/335&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1967088" author="admilazz" created="Sun, 5 Aug 2018 04:38:55 +0000"  >&lt;p&gt;Also affects 2.7.0.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="346655">CSHARP-1896</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htod6v:</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>