<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:48 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-1156] CountDocuments doesn&apos;t work with a hint</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1156</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I am trying to run CountDocuments with a hint but it isn&apos;t working. It returns an error `unrecognized field hint`&lt;/p&gt;

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

&lt;p&gt;This is my code&lt;/p&gt;

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

&lt;p&gt;```&lt;br/&gt;
&lt;font color=&quot;#9cdcfe&quot;&gt; opts&lt;/font&gt; &lt;font color=&quot;#d4d4d4&quot;&gt;:=&lt;/font&gt; &lt;font color=&quot;#d4d4d4&quot;&gt;&amp;amp;&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;options.CountOptions{}&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;opts.&lt;/font&gt;&lt;font color=&quot;#dcdcaa&quot;&gt;SetHint&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#ce9178&quot;&gt;&quot;formId_1_client_1_isActive_1__p_createdBy_1__created_at_1&quot;&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;)&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/font&gt;&lt;font color=&quot;#9cdcfe&quot;&gt;count&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;, &lt;/font&gt;&lt;font color=&quot;#9cdcfe&quot;&gt;err&lt;/font&gt; &lt;font color=&quot;#d4d4d4&quot;&gt;:=&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; r.collection.&lt;/font&gt;&lt;font color=&quot;#dcdcaa&quot;&gt;CountDocuments&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;(ctx, query, opts)&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/font&gt;&lt;font color=&quot;#c586c0&quot;&gt;if&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; err &lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;!=&lt;/font&gt; &lt;font color=&quot;#569cd6&quot;&gt;nil&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; {&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/font&gt;&lt;font color=&quot;#c586c0&quot;&gt;return&lt;/font&gt; &lt;font color=&quot;#b5cea8&quot;&gt;0&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;, err&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/font&gt;&lt;font color=&quot;#c586c0&quot;&gt;return&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; count, &lt;/font&gt;&lt;font color=&quot;#569cd6&quot;&gt;nil&lt;/font&gt;&lt;br/&gt;
```&lt;/p&gt;</description>
                <environment>&amp;nbsp;&amp;nbsp;mongodb v4.0.6&lt;br/&gt;
driver v1.0.1&lt;br/&gt;
OS: Ubuntu 18.04&lt;br/&gt;
Go: 1.12</environment>
        <key id="809172">GODRIVER-1156</key>
            <summary>CountDocuments doesn&apos;t work with a hint</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13203">Gone away</resolution>
                                        <assignee username="manny.eppinger@mongodb.com">Emmanuel Eppinger</assignee>
                                    <reporter username="palash25">Palash Nigam</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Jun 2019 14:18:07 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:24 +0000</updated>
                            <resolved>Mon, 5 Aug 2019 20:07:55 +0000</resolved>
                                    <version>1.0.1</version>
                                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2294663" author="manny.eppinger" created="Mon, 24 Jun 2019 14:10:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/56684987/mongodb-golang-driver-not-returns-unrecognized-field-hint-when-using-hint-with/56720193#56720193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/56684987/mongodb-golang-driver-not-returns-unrecognized-field-hint-when-using-hint-with/56720193#56720193&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2294650" author="manny.eppinger" created="Mon, 24 Jun 2019 14:06:57 +0000"  >&lt;p&gt;Hi Palash,&lt;/p&gt;

&lt;p&gt;Would you be able to provide a SSCCE (&lt;a href=&quot;http://sscce.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://sscce.org/&lt;/a&gt;) that reproduces the issue on the master branch?&lt;/p&gt;

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

&lt;p&gt;Emmanuel&lt;/p&gt;</comment>
                            <comment id="2294356" author="palash25" created="Mon, 24 Jun 2019 07:45:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/56684987/mongodb-golang-driver-not-returns-unrecognized-field-hint-when-using-hint-with/56720193#56720193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/56684987/mongodb-golang-driver-not-returns-unrecognized-field-hint-when-using-hint-with/56720193#56720193&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2293433" author="manny.eppinger" created="Fri, 21 Jun 2019 19:24:21 +0000"  >&lt;p&gt;Hi&#160;Palash,&lt;/p&gt;

&lt;p&gt;I was unable to reproduce this issue. Would you be able to give a full reproduction of this bug? Something like a complete file that prints out the error.&lt;/p&gt;

&lt;p&gt;Also would you be able to do this for 1.0.3?&lt;/p&gt;

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

&lt;p&gt;Emmanuel&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="221584" name="count_documents.go" size="1178" author="manny.eppinger@mongodb.com" created="Fri, 21 Jun 2019 19:24:48 +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|huvdtr:</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>