<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:59 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-89] Cannot select only sub-fields to return</title>
                <link>https://jira.mongodb.org/browse/SERVER-89</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;there ought to be a way to select only the x.y field to be returned. using {x: {y: 1}} returns both x.y and x.z and using &lt;/p&gt;
{&quot;x.y&quot;: 1}
&lt;p&gt; returns nothing at all.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.bar.find()&lt;br/&gt;
&amp;gt; db.bar.save({x: &lt;/p&gt;
{y: 5, z: 6}
&lt;p&gt;, w: 2})&lt;br/&gt;
&amp;gt; db.bar.find({}, {x: {y: 1}})&lt;br/&gt;
{&quot;_id&quot; : &quot;4a255950538cba3e38eafcc4&quot; , &quot;x&quot; : {&quot;y&quot; : 5 , &quot;z&quot; : 6}}&lt;br/&gt;
&amp;gt; db.bar.find({}, &lt;/p&gt;
{&quot;x.y&quot;: 1}
&lt;p&gt;)&lt;br/&gt;
&amp;gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="10195">SERVER-89</key>
            <summary>Cannot select only sub-fields to return</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="mike">Michael Dirolf</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Jun 2009 12:59:55 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:34 +0000</updated>
                            <resolved>Thu, 2 Jul 2009 14:06:06 +0000</resolved>
                                                    <fixVersion>0.9.6</fixVersion>
                                    <component>Usability</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="10250" author="eliot" created="Fri, 10 Jul 2009 11:21:41 +0000"  >&lt;p&gt;closed since 0.9.6 went out&lt;/p&gt;</comment>
                            <comment id="10218" author="sh" created="Thu, 2 Jul 2009 22:59:19 +0000"  >&lt;p&gt;Thanks for implementing this.&lt;/p&gt;

&lt;p&gt;I&apos;ve had a chance to do some testing with this and it appears to work fine with one x.y field but fails when more than one is selected by returning more than expected. I noticed there is a test case but it will obviously continue to pass in this situation.&lt;/p&gt;

&lt;p&gt;e.g.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.find5.find()&lt;br/&gt;
{&quot;_id&quot; : &quot;4a4d6db199b25e6fee7649f9&quot; , &quot;a&quot; : 1 , &quot;b&quot; : {&quot;c&quot; : 2 , &quot;d&quot; : 3 , &quot;e&quot; : 4}}&lt;br/&gt;
&amp;gt; db.find5.find( {} , &lt;/p&gt;
{ &quot;b.c&quot; : 1}
&lt;p&gt; )&lt;br/&gt;
{&quot;_id&quot; : &quot;4a4d6db199b25e6fee7649f9&quot; , &quot;b&quot; : {&quot;c&quot; : 2}}&lt;br/&gt;
&amp;gt; db.find5.find( {} , &lt;/p&gt;
{ &quot;b.c&quot; : 1 , &quot;b.d&quot; : 1 }
&lt;p&gt; )&lt;br/&gt;
{&quot;_id&quot; : &quot;4a4d6db199b25e6fee7649f9&quot; , &quot;b&quot; : {&quot;c&quot; : 2 , &quot;d&quot; : 3 , &quot;e&quot; : 4}}&lt;/p&gt;</comment>
                            <comment id="10216" author="eliot" created="Thu, 2 Jul 2009 14:06:06 +0000"  >&lt;p&gt;implemented as find( {} , &lt;/p&gt;
{ &quot;a.b.c&quot; : 1 }
&lt;p&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 2 Jul 2009 14:06:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 32 weeks, 5 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, 32 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mike</customfieldvalue>
            <customfieldvalue>sh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpy2n:</customfieldvalue>

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

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

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