<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:05:30 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>[DOCS-12543]  $and operator accepts one expression</title>
                <link>https://jira.mongodb.org/browse/DOCS-12543</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;
&lt;p&gt;&lt;tt&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/and/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;From the mongoDB documentation&lt;/a&gt;:&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;{{}}&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/and/#op._S_and&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$and&lt;/tt&gt;&lt;/a&gt;&#160;performs a logical&#160;&lt;tt&gt;AND&lt;/tt&gt;&#160;operation on an array of&#160;&lt;em&gt;two or more&lt;/em&gt;&#160;expressions&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;However, I am able to run a mongo query with just one expression.&lt;/p&gt;

&lt;p&gt;For example in Studio 3T I run:&lt;/p&gt;

&lt;p&gt;db.getCollection(&quot;mycollection&quot;).find({&#160;&lt;/p&gt;

&lt;p&gt;&quot;$and&quot;: [&lt;/p&gt;
{&#160;&quot;memId&quot;:&quot;07e3c5560dc125689eb75bfd120ceb91&quot;&#160;&#160;}
&lt;p&gt;]&lt;/p&gt;

&lt;p&gt;})&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Is this a typo in the documentation or an incorrect implementation of mongoDB?&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment></environment>
        <key id="715615">DOCS-12543</key>
            <summary> $and operator accepts one expression</summary>
                <type id="12508" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14708&amp;avatarType=issuetype">Typo</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="ravind.kumar">Ravind Kumar</assignee>
                                    <reporter username="betty.leung@interpreta.com">Betty Leung</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Mar 2019 20:05:01 +0000</created>
                <updated>Mon, 30 Oct 2023 20:44:47 +0000</updated>
                            <resolved>Wed, 27 Mar 2019 19:44:50 +0000</resolved>
                                    <version>3.6.6</version>
                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2193824" author="betty.leung@interpreta.com" created="Wed, 27 Mar 2019 21:40:56 +0000"  >&lt;p&gt;Thank you for the documentation updates and info&#160;@Ravind Kumar.&#160; I am able to run the &lt;b&gt;$or&lt;/b&gt; operator with only one operation as well. However, the mongo documentation states:&lt;/p&gt;

&lt;p&gt;The&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/or/#op._S_or&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$or&lt;/tt&gt;&lt;/a&gt;&#160;operator performs a logical&#160;&lt;tt&gt;OR&lt;/tt&gt;&#160;operation on an array of&#160;&lt;em&gt;two or more&lt;/em&gt;&lt;tt&gt;&amp;lt;expressions&amp;gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/or/#op._S_or&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/or/#op._S_or&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Is this also a documentation typo?{{}}&lt;/p&gt;</comment>
                            <comment id="2193672" author="ravind.kumar" created="Wed, 27 Mar 2019 19:45:44 +0000"  >&lt;p&gt;Thanks for filing this &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=betty.leung%40interpreta.com&quot; class=&quot;user-hover&quot; rel=&quot;betty.leung@interpreta.com&quot;&gt;betty.leung@interpreta.com&lt;/a&gt;. I&apos;ve clarified the description to &lt;b&gt;one or more&lt;/b&gt; arguments. As you noted, &lt;tt&gt;$and&lt;/tt&gt; is perfectly happy with a single argument. I&apos;ve backported the changes as well. &lt;/p&gt;

&lt;p&gt;If you run into any further issues with the MongoDB Documentation, please feel free to open another ticket. &lt;/p&gt;</comment>
                            <comment id="2193657" author="xgen-internal-githook" created="Wed, 27 Mar 2019 19:40:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;name&apos;: &apos;rk-mongo&apos;}
&lt;p&gt;Message: Multiple small fixups:&lt;/p&gt;

&lt;p&gt;DOCSP-4943: $cond requires all arguments&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12556&quot; title=&quot;Deprecation status of GridFS options contentType and aliases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12556&quot;&gt;&lt;del&gt;DOCS-12556&lt;/del&gt;&lt;/a&gt;: Deprecate GridFS contentType, aliases, MD5&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12543&quot; title=&quot; $and operator accepts one expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12543&quot;&gt;&lt;del&gt;DOCS-12543&lt;/del&gt;&lt;/a&gt;: query $and accepts one expression&lt;br/&gt;
DOCSP-4791: Certain background operations can block setFeatureCompatibilityVersion&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/1216a876af0bcdecd370707ed551d08846958023&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/1216a876af0bcdecd370707ed551d08846958023&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2193650" author="xgen-internal-githook" created="Wed, 27 Mar 2019 19:39:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;name&apos;: &apos;rk-mongo&apos;}
&lt;p&gt;Message: Multiple small fixups:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12567&quot; title=&quot;Duplicate line of text in Built-In Roles descriptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12567&quot;&gt;&lt;del&gt;DOCS-12567&lt;/del&gt;&lt;/a&gt;: Removing duplicate line&lt;br/&gt;
DOCSP-4943: $cond requires all arguments&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12556&quot; title=&quot;Deprecation status of GridFS options contentType and aliases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12556&quot;&gt;&lt;del&gt;DOCS-12556&lt;/del&gt;&lt;/a&gt;: Deprecate GridFS contentType, aliases, MD5&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12543&quot; title=&quot; $and operator accepts one expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12543&quot;&gt;&lt;del&gt;DOCS-12543&lt;/del&gt;&lt;/a&gt;: query $and accepts one expression&lt;br/&gt;
DOCSP-4791: Certain background operations can block setFeatureCompatibilityVersion&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/90f65234bfd1a090fba330240c8d06d3d0b83b82&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/90f65234bfd1a090fba330240c8d06d3d0b83b82&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2193646" author="xgen-internal-githook" created="Wed, 27 Mar 2019 19:39:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;}
&lt;p&gt;Message: Multiple small fixups:&lt;/p&gt;

&lt;p&gt;DOCSP-4943: $cond requires all arguments&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12556&quot; title=&quot;Deprecation status of GridFS options contentType and aliases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12556&quot;&gt;&lt;del&gt;DOCS-12556&lt;/del&gt;&lt;/a&gt;: Deprecate GridFS contentType, aliases, MD5&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12543&quot; title=&quot; $and operator accepts one expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12543&quot;&gt;&lt;del&gt;DOCS-12543&lt;/del&gt;&lt;/a&gt;: query $and accepts one expression&lt;br/&gt;
DOCSP-4791: Certain background operations can block setFeatureCompatibilityVersion&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/33fec46eb47f75515d0dcf3d08746cbb35825912&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/33fec46eb47f75515d0dcf3d08746cbb35825912&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2193612" author="xgen-internal-githook" created="Wed, 27 Mar 2019 19:18:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;}
&lt;p&gt;Message: Multiple small fixups:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12567&quot; title=&quot;Duplicate line of text in Built-In Roles descriptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12567&quot;&gt;&lt;del&gt;DOCS-12567&lt;/del&gt;&lt;/a&gt;: Removing duplicate line&lt;br/&gt;
DOCSP-4943: $cond requires all arguments&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12556&quot; title=&quot;Deprecation status of GridFS options contentType and aliases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12556&quot;&gt;&lt;del&gt;DOCS-12556&lt;/del&gt;&lt;/a&gt;: Deprecate GridFS contentType, aliases, MD5&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12543&quot; title=&quot; $and operator accepts one expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12543&quot;&gt;&lt;del&gt;DOCS-12543&lt;/del&gt;&lt;/a&gt;: query $and accepts one expression&lt;br/&gt;
DOCSP-4791: Certain background operations can block setFeatureCompatibilityVersion&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/0da16c78a71ab3db1a30b9f7087b2c09bf01db44&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/0da16c78a71ab3db1a30b9f7087b2c09bf01db44&lt;/a&gt;&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>Tue, 12 Mar 2019 20:39:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 46 weeks 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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 46 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>betty.leung@interpreta.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huqluf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hug8yn:</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>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.1</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huq83r:</customfieldvalue>

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