<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:30 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>[CDRIVER-2205] Array Update Improvements</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2205</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description></description>
                <environment></environment>
        <key id="402362">CDRIVER-2205</key>
            <summary>Array Update Improvements</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="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jul 2017 21:33:24 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:36 +0000</updated>
                            <resolved>Thu, 12 Oct 2017 19:45:22 +0000</resolved>
                                                    <fixVersion>1.9.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1697843" author="jesse" created="Thu, 12 Oct 2017 22:20:03 +0000"  >&lt;p&gt;Splendid.&lt;/p&gt;</comment>
                            <comment id="1697632" author="kevin.albertson" created="Thu, 12 Oct 2017 19:45:22 +0000"  >&lt;p&gt;The new &lt;tt&gt;mongoc_collection_update_one_with_opts&lt;/tt&gt; and &lt;tt&gt;mongoc_collection_update_many_with_opts&lt;/tt&gt; functions support arrayFilters through the opts parameter.&lt;/p&gt;</comment>
                            <comment id="1696761" author="xgen-internal-githook" created="Wed, 11 Oct 2017 23:51:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2205&quot; title=&quot;Array Update Improvements&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2205&quot;&gt;&lt;del&gt;CDRIVER-2205&lt;/del&gt;&lt;/a&gt; fix wc on update_and_replace tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/ed198434edd0dd6a967201820d9af4891cb4e9a9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/ed198434edd0dd6a967201820d9af4891cb4e9a9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1694371" author="xgen-internal-githook" created="Tue, 10 Oct 2017 13:09:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2205&quot; title=&quot;Array Update Improvements&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2205&quot;&gt;&lt;del&gt;CDRIVER-2205&lt;/del&gt;&lt;/a&gt; test update and replace with opts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b3c9735757e1c544250afb125f8f76d6a795c0bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b3c9735757e1c544250afb125f8f76d6a795c0bc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1690991" author="xgen-internal-githook" created="Thu, 5 Oct 2017 23:06:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2205&quot; title=&quot;Array Update Improvements&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2205&quot;&gt;&lt;del&gt;CDRIVER-2205&lt;/del&gt;&lt;/a&gt; add example-update to dist tarball&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a4fd71fc3e4ea6c7706ac5be49559a4b6d71d975&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a4fd71fc3e4ea6c7706ac5be49559a4b6d71d975&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1690295" author="xgen-internal-githook" created="Thu, 5 Oct 2017 15:16:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2205&quot; title=&quot;Array Update Improvements&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2205&quot;&gt;&lt;del&gt;CDRIVER-2205&lt;/del&gt;&lt;/a&gt; add update with opts functions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2a329015756b28249806e4cb40902a7e10a6d99f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2a329015756b28249806e4cb40902a7e10a6d99f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1687910" author="xgen-internal-githook" created="Tue, 3 Oct 2017 15:33:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2205&quot; title=&quot;Array Update Improvements&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2205&quot;&gt;&lt;del&gt;CDRIVER-2205&lt;/del&gt;&lt;/a&gt; add docs for new update fns&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/870cf01236ed4c4e554563e1dd413bc06fbd30b9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/870cf01236ed4c4e554563e1dd413bc06fbd30b9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1683336" author="kevin.albertson" created="Wed, 27 Sep 2017 16:42:07 +0000"  >&lt;p&gt;It looks like we already support the arrayFilters parameter on find_and_modify and the bulk update operations.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_collection_find_and_modify_with_opts.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_collection_find_and_modify_with_opts&lt;/a&gt;&lt;br/&gt;
has a separate opts struct, but fortunately we have a &lt;tt&gt;mongoc_find_and_modify_opts_append&lt;/tt&gt; function. I wrote an example passing arrayFilter and it does work as expected.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_bulk_operation_update_one_with_opts.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_bulk_operation_update_one_with_opts&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_bulk_operation_update_many_with_opts.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_bulk_operation_update_many_with_opts&lt;/a&gt;&lt;br/&gt;
take a bson_t for opts, and concatenate them to the command. I believe these should work out of the box but have not verified yet.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_collection_update.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_collection_update&lt;/a&gt;&lt;br/&gt;
does not have an options argument. You can call &lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_collection_write_command_with_opts.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_collection_write_command_with_opts&lt;/a&gt; but our docs discourage using this for basic crud commands. Instead, we can create separate functions &lt;tt&gt;mongoc_collection_update_one_with_opts&lt;/tt&gt; and &lt;tt&gt;mongoc_collection_update_many_with_opts&lt;/tt&gt; which follow the CRUD spec more closely as well.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="402358">CXX-1390</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="393404">DRIVERS-387</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="549443">CDRIVER-2664</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="402359">PHPC-975</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="465338">CDRIVER-2412</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2085</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht2j47:</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>