<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:34 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-604] Cursor should return the objectID (&quot;_id)</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-604</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Cursor has a&#160;ID() int64 method which seems to serve no purpose, at least not for the end user of the API.&#160;&lt;/p&gt;

&lt;p&gt;&#160; I propose to either replace this or add a new method ObjectID() which should return the objectID (_id) of the current/latest element from cursor.&#160; Currently there doesn&apos;t seem to me a method to get the objectID unless you create new types with an additional &quot;_id&quot;&#160; field for each result.&lt;/p&gt;</description>
                <environment></environment>
        <key id="621554">GODRIVER-604</key>
            <summary>Cursor should return the objectID (&quot;_id)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="themihai">Mihai B</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Oct 2018 08:16:47 +0000</created>
                <updated>Fri, 27 Oct 2023 13:16:38 +0000</updated>
                            <resolved>Fri, 9 Nov 2018 16:47:59 +0000</resolved>
                                                                    <component>Core API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2052484" author="kris.brandow" created="Mon, 5 Nov 2018 21:17:40 +0000"  >&lt;p&gt;Closed due to inactivity.&lt;/p&gt;</comment>
                            <comment id="2038185" author="kris.brandow" created="Mon, 22 Oct 2018 20:30:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=themihai&quot; class=&quot;user-hover&quot; rel=&quot;themihai&quot;&gt;themihai&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Currently the ID field returns the server cursor ID for the cursor.&lt;/p&gt;

&lt;p&gt;Additionally, since the &lt;tt&gt;_id&lt;/tt&gt; of a document may not be an ObjectID, we cannot have a method that returns the ObjectID. If you want the &lt;tt&gt;_id&lt;/tt&gt; you can retrieve the raw bytes, turn it into a &lt;tt&gt;bson.Reader&lt;/tt&gt; and then &lt;tt&gt;Lookup&lt;/tt&gt; the &lt;tt&gt;_id&lt;/tt&gt; element.&lt;/p&gt;

&lt;p&gt;--Kris&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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|hu13a7:</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>