<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:47 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>[SERVER-9] negated $in operator</title>
                <link>https://jira.mongodb.org/browse/SERVER-9</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It would be very nice to be able to use a negated version of the existing $in query operator.  If I have an array of values I know I don&apos;t want to match against, I&apos;d ideally be able to use a query along the lines of&lt;/p&gt;

&lt;p&gt;db.mycoll.find({_id:{&apos;not $in&apos;:&lt;span class=&quot;error&quot;&gt;&amp;#91;some, array&amp;#93;&lt;/span&gt;}})&lt;/p&gt;</description>
                <environment></environment>
        <key id="10032">SERVER-9</key>
            <summary>negated $in operator</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="aaron">Aaron Staple</assignee>
                                    <reporter username="liamstask">Liam Staskawicz</reporter>
                        <labels>
                    </labels>
                <created>Sat, 11 Apr 2009 20:03:42 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:53 +0000</updated>
                            <resolved>Tue, 26 May 2009 06:24:37 +0000</resolved>
                                    <version>0.9.3</version>
                                    <fixVersion>0.9.3</fixVersion>
                                    <component>Usability</component>
                                        <votes>1</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10012" author="aaron" created="Mon, 13 Apr 2009 19:25:31 +0000"  >&lt;p&gt;I&apos;ve implemented $nin, tested in nin.js.&lt;/p&gt;</comment>
                            <comment id="10011" author="eliot" created="Mon, 13 Apr 2009 14:48:34 +0000"  >&lt;p&gt;Yeah - it ideally shouldn&apos;t be returned.&lt;br/&gt;
Though if its really annoying, maybe we should just assert and see if it comes up.&lt;/p&gt;</comment>
                            <comment id="10009" author="aaron" created="Mon, 13 Apr 2009 14:46:28 +0000"  >&lt;p&gt;Per previous comment, I&apos;m guessing that the object should not be returned.  The example isn&apos;t so different from the previous one, but the implementation is more complicated.&lt;/p&gt;</comment>
                            <comment id="10008" author="aaron" created="Mon, 13 Apr 2009 14:38:20 +0000"  >&lt;p&gt;Ok, should { a: [ &lt;/p&gt;
{b: 1 }
&lt;p&gt;, &lt;/p&gt;
{ b: 2 }
&lt;p&gt; ] } be returned with { &apos;a.b&apos;: {$ne:1}} or not? &lt;/p&gt;</comment>
                            <comment id="10005" author="eliot" created="Mon, 13 Apr 2009 12:39:29 +0000"  >&lt;p&gt;I think we should change the meaning of $ne with arrays.&lt;/p&gt;

{ a : [ 1 , 2] }
&lt;p&gt; should not be returned with { a : &lt;/p&gt;
{ $ns : 1 }
&lt;p&gt; }&lt;/p&gt;</comment>
                            <comment id="10003" author="aaron" created="Mon, 13 Apr 2009 11:38:11 +0000"  >&lt;p&gt;I&apos;m planning to call this new operator $nin.&lt;/p&gt;

&lt;p&gt;Do we want $nin to be equivalent to several instances of the $ne operator ( { a: &lt;/p&gt;
{ $nin: [ 1, 2, 3 ] }
&lt;p&gt; } &amp;lt;=&amp;gt; { a: &lt;/p&gt;
{ $ne: 1, $ne: 2, $ne: 3 }
&lt;p&gt; } )?&lt;/p&gt;

&lt;p&gt;If so, we should be aware of $ne&apos;s behavior matching multikey arrays.  Currently, { a: &lt;/p&gt;
{ $ne: 1 }
&lt;p&gt; } will match &lt;/p&gt;
{ a: [ 1, 2 ] }
&lt;p&gt; because 2 != 1.  Similaraly, { a: &lt;/p&gt;
{ $nin: [ 1, 2 ] }
&lt;p&gt; } would match &lt;/p&gt;
{ a: [ 1, 3 ] }
&lt;p&gt; as well as &lt;/p&gt;
{ a: [ 1, 2 ] }
&lt;p&gt; since these are each currently matched by { a: &lt;/p&gt;
{ $ne: 1, $ne: 2 }
&lt;p&gt; }.&lt;/p&gt;

&lt;p&gt;Do we want to change the meaning of $ne, use some other definition for $nin, or just proceed with the proposed &quot;simple&quot; definition of $nin?&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, 13 Apr 2009 11:38:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 45 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 45 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>liamstask</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpyvb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21254</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0lvj:</customfieldvalue>

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