<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:21 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-1420] supporting of ReturnDocument in  BulkWriteOptions  when doing bulk operation</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1420</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;when we are making db API call for&#160;set of Document to update at once in bulk write API. Then can we pass one flag&#160; for returning new Document when update done.&lt;/p&gt;

&lt;p&gt;BulkWriteOptions.returnDocument&lt;/p&gt;

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

&lt;p&gt;for _, msg := range listOfData &lt;/p&gt;
{
 operation := mongo.NewUpdateOneModel()
 operation.SetFilter(bson.M\{&quot;_id&quot;: msgbyte.Id}
&lt;p&gt;)&lt;br/&gt;
 operation.SetUpdate(bson.M{&quot;$set&quot;: bson.M{}})&lt;br/&gt;
 operation.SetUpsert(false)&lt;br/&gt;
 operations = append(operations, operation)&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;bulkOption := options.BulkWriteOptions{}&lt;/p&gt;

&lt;p&gt;&lt;b&gt;BulkWriteOptions.returnDocument&lt;/b&gt;&lt;/p&gt;


&lt;p&gt;bulkWriteResponse,err:=t.collection(ctx,operations,bulkOption)&lt;/p&gt;</description>
                <environment></environment>
        <key id="1029956">GODRIVER-1420</key>
            <summary>supporting of ReturnDocument in  BulkWriteOptions  when doing bulk operation</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="dharmadev2@gmail.com">DHARMADEV gupta</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Nov 2019 12:49:26 +0000</created>
                <updated>Wed, 11 Dec 2019 18:57:16 +0000</updated>
                            <resolved>Wed, 11 Dec 2019 18:57:16 +0000</resolved>
                                    <version>1.1.3</version>
                                                    <component>API</component>
                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2599687" author="isabella.siu" created="Wed, 11 Dec 2019 18:57:02 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dharmadev2%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;dharmadev2@gmail.com&quot;&gt;dharmadev2@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;No, the answer is that if the database ever adds this functionality we will, but we cannot at this point. I should have closed this instead of putting it in waiting for reporter.&lt;/p&gt;</comment>
                            <comment id="2599392" author="dharmadev2@gmail.com" created="Wed, 11 Dec 2019 17:07:30 +0000"  >&lt;p&gt;Is there anything needed from my side.Please let me know.&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|hvv8af:</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>