<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:54 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>[GODRIVER-763] Select field </title>
                <link>https://jira.mongodb.org/browse/GODRIVER-763</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;How to select field.&lt;br/&gt;
Exam.&lt;/p&gt;

&lt;p&gt;col.Find(nil).Select(bson.M{&quot;name&quot;: 1}).One(&amp;amp;result)&lt;/p&gt;

&lt;p&gt;I see code at func &quot;Decode&quot; it&apos;s get all data in document from mongo before maping with struct in golang.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</description>
                <environment></environment>
        <key id="670920">GODRIVER-763</key>
            <summary>Select field </summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="bakatest">bakatest</reporter>
                        <labels>
                    </labels>
                <created>Sat, 12 Jan 2019 19:01:51 +0000</created>
                <updated>Mon, 4 Feb 2019 21:28:33 +0000</updated>
                            <resolved>Mon, 4 Feb 2019 21:28:33 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2115674" author="bakatest" created="Tue, 15 Jan 2019 15:57:11 +0000"  >&lt;p&gt;Thank you all.&lt;br/&gt;
Sry i don&apos;t know how to tag name TT^TT.&lt;/p&gt;

&lt;p&gt;Yes, I need projection function.&lt;br/&gt;
 Can&apos;t wait to see full tutorial and document in Golang&#160;&lt;br/&gt;
 A lot Go dev just gen doc. but I think it&apos;s bad thing to started or tutorial&lt;br/&gt;
 &lt;a href=&quot;https://docs.mongodb.com/v3.2/tutorial/project-fields-from-query-results/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/v3.2/tutorial/project-fields-from-query-results/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2114448" author="gustavopaiva" created="Mon, 14 Jan 2019 18:15:18 +0000"  >&lt;p&gt;I guess he is looking for how to do projections, maybe this example can help: &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/examples/documentation_examples/examples.go#L1103)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/examples/documentation_examples/examples.go#L1103&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2114146" author="kris.brandow" created="Mon, 14 Jan 2019 16:00:54 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bakatest&quot; class=&quot;user-hover&quot; rel=&quot;bakatest&quot;&gt;bakatest&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Can you please provide a complete, runnable code example of what you are trying to accomplish?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Kris&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="206139" name="Screen Shot 2562-01-13 at 02.00.34.png" size="13488" author="bakatest" created="Sat, 12 Jan 2019 19:01:01 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|hu91x3:</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>