<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:39 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-1089] How can i update some field except obj field?</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1089</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;type Update struct &lt;/p&gt;
{
 Name string `bson:&quot;name&quot;`
 Obj *StructB `bson:&quot;obj,omitempty&quot;`
}
&lt;p&gt;  &lt;br/&gt;
type StructB struct&lt;/p&gt;
{
A string `bson:&quot;a&quot;`
}
&lt;p&gt;  &lt;/p&gt;

&lt;p&gt;update := Update&lt;/p&gt;
{
  Name:&quot;name&quot;,
}
&lt;p&gt;  &lt;br/&gt;
db.Update(filter,update)  &lt;/p&gt;

&lt;p&gt;error message ``&quot;multiple write errors: [{write errors: [{&apos;$set&apos; is empty. You must specify a field like so: {$set: &lt;/p&gt;
{&amp;lt;field&amp;gt;: ...}
&lt;p&gt;}}]}, &lt;/p&gt;
{&amp;lt;nil&amp;gt;}
&lt;p&gt;]&quot;``&lt;/p&gt;</description>
                <environment></environment>
        <key id="777840">GODRIVER-1089</key>
            <summary>How can i update some field except obj field?</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bakatest">bakatest</reporter>
                        <labels>
                    </labels>
                <created>Sat, 25 May 2019 21:58:02 +0000</created>
                <updated>Fri, 27 Oct 2023 13:16:33 +0000</updated>
                            <resolved>Thu, 30 May 2019 14:43:01 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2260343" author="bakatest" created="Sun, 26 May 2019 11:42:30 +0000"  >&lt;p&gt;sry i&apos;m wrong plz close issure  &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="2260312" author="bakatest" created="Sun, 26 May 2019 09:07:42 +0000"  >&lt;p&gt;like this way &lt;a href=&quot;http://www.mikeball.info/blog/serialize-empty-structs-to-json-in-go/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mikeball.info/blog/serialize-empty-structs-to-json-in-go/&lt;/a&gt;&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|huqfb3:</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>