<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:12 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-1821] Different with $addToSet in NodeJS and Go drivers</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1821</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;There is a problem between the nodejs driver and the go driver with $addToSet, why would they be different when the company mongo is making them?&lt;/p&gt;

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

&lt;p&gt;The nodejs driver will replace the field in the document, the go driver will not.&lt;/p&gt;

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

&lt;p&gt;For example if you are using $addToSet on a field that has an existing string... the nodejs driver would replace it with an array and the go driver returns an error.&lt;/p&gt;

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

&lt;p&gt;That makes anyone who writes in node first have a problem with the interpretation of how the driver works.&#160; Why would they be different?&lt;/p&gt;</description>
                <environment>Linux</environment>
        <key id="1580472">GODRIVER-1821</key>
            <summary>Different with $addToSet in NodeJS and Go drivers</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="andrewhodel@gmail.com">Andrew Hodel</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Jan 2021 23:30:40 +0000</created>
                <updated>Wed, 6 Jan 2021 01:23:26 +0000</updated>
                            <resolved>Wed, 6 Jan 2021 01:23:26 +0000</resolved>
                                    <version>1.4.4</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3549988" author="kevin.albertson" created="Wed, 6 Jan 2021 01:23:26 +0000"  >&lt;p&gt;Closing as duplicate, since the conversation has continued in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1818&quot; title=&quot;BSON encoding, passing single string to $addToSet field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1818&quot;&gt;&lt;del&gt;GODRIVER-1818&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3549551" author="JIRAUSER1251601" created="Tue, 5 Jan 2021 20:10:35 +0000"  >&lt;p&gt;@kevin I guess I can&apos;t talk to you with structure.&lt;/p&gt;

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

&lt;p&gt;I&apos;ll comment on the other issue.&lt;/p&gt;</comment>
                            <comment id="3548084" author="JIRAUSER1251601" created="Mon, 4 Jan 2021 23:53:21 +0000"  >&lt;p&gt;There are a lot of people who think overwriting a null value is normal you know...&lt;/p&gt;</comment>
                            <comment id="3548072" author="JIRAUSER1251601" created="Mon, 4 Jan 2021 23:34:27 +0000"  >&lt;p&gt;It is worse, it won&apos;t even overwrite a null value in the field!&lt;/p&gt;

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

&lt;p&gt;[{write errors: [&lt;/p&gt;
{Cannot apply $addToSet to non-array field. Field named &apos;outsideIp&apos; has non-array type null}
&lt;p&gt;]}&lt;/p&gt;

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

&lt;p&gt;Do you really think that&apos;s acceptable?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1580267">GODRIVER-1818</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hy9o0f:</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>