<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:43: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>[DOCS-2653] Suggestion for /manual/tutorial/remove-documents/</title>
                <link>https://jira.mongodb.org/browse/DOCS-2653</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;I suggest adding a semi-colon after shell JS statements. Maybe you only want to do that for multi-line examples, though.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Inconsistent formatting: you use a local footnote to suggest using &lt;tt&gt;drop()&lt;/tt&gt; instead of a &lt;tt&gt;remove()&lt;/tt&gt; without criteria, but in the &quot;Remove Documents that Matches a Condition&quot; section, a &quot;Note:&quot; block is used. I think a &quot;Note:&quot; block could be used for both.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;For readability, I think the following lines:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The following example removes all documents that have type equal to food from the inventory collection:&lt;/p&gt;

&lt;p&gt;The following example removes one document that have type equal to food from the inventory collection&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;...could be rewritten as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The following example removes X document(s) from the &lt;tt&gt;inventory&lt;/tt&gt; collection where the &lt;tt&gt;type&lt;/tt&gt; field is equal to &lt;tt&gt;food&lt;/tt&gt;:&lt;/p&gt;&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;Should we explicitly mention that &lt;tt&gt;remove()&lt;/tt&gt; is limited to removing all or a single document at present? As is, we mention both methods of operation, but don&apos;t really say anything about a limited removal not being possible. Would it make sense to link to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4796&quot; title=&quot;Add limit/max to remove command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4796&quot;&gt;SERVER-4796&lt;/a&gt; since this is an upcoming feature, or do we typically not reference JIRA tickets in documentation?&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Additionally, I think a relevant use case is removing one document with respect to a sort order (e.g. removing the oldest document by some criteria). The only way I know to do this is with &lt;tt&gt;findAndModify()&lt;/tt&gt;. There actually isn&apos;t an example of doing so on the &lt;tt&gt;findAndModify()&lt;/tt&gt; page (no examples for the &lt;tt&gt;remove&lt;/tt&gt; option, in fact). I think this would be a relevant outbound link on the &lt;tt&gt;db.collection.remove()&lt;/tt&gt; page: tell users that if they need to remove a single document by some sort criteria, they can use &lt;tt&gt;findAndModify()&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="109381">DOCS-2653</key>
            <summary>Suggestion for /manual/tutorial/remove-documents/</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>audit-2014</label>
                    </labels>
                <created>Mon, 3 Feb 2014 21:52:54 +0000</created>
                <updated>Wed, 12 Feb 2014 23:32:46 +0000</updated>
                            <resolved>Wed, 12 Feb 2014 23:32:39 +0000</resolved>
                                                    <fixVersion>v1.3.1</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="498222" author="xgen-internal-githook" created="Wed, 12 Feb 2014 23:31:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kay-kim&apos;, u&apos;name&apos;: u&apos;kay&apos;, u&apos;email&apos;: u&apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-2653&quot; title=&quot;Suggestion for /manual/tutorial/remove-documents/&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-2653&quot;&gt;&lt;del&gt;DOCS-2653&lt;/del&gt;&lt;/a&gt; tweaks to remove tutorial&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/a9850f8b4ef626c927d5f51f266e6c2d08553ff5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/a9850f8b4ef626c927d5f51f266e6c2d08553ff5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="498212" author="xgen-internal-githook" created="Wed, 12 Feb 2014 23:25:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kay-kim&apos;, u&apos;name&apos;: u&apos;kay&apos;, u&apos;email&apos;: u&apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-2653&quot; title=&quot;Suggestion for /manual/tutorial/remove-documents/&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-2653&quot;&gt;&lt;del&gt;DOCS-2653&lt;/del&gt;&lt;/a&gt; tweaks to remove tutorial&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/72b51d1301a0cbd3bcabaa09e6629b9793a031bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/72b51d1301a0cbd3bcabaa09e6629b9793a031bc&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10855" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Actual Time</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 12 Feb 2014 17:23:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 1 week 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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 1 week ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jmikola@mongodb.com</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrrdon:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>100125</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|hryacf:</customfieldvalue>

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