<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:20 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>[CXX-789] Modify BSONObj</title>
                <link>https://jira.mongodb.org/browse/CXX-789</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I want to save records as BSONObj in memory, then we can access them easier, when out logic modify records we can modify the data in memory and update them in database, but now we can not modify BSONObj,how can we do this now&lt;/p&gt;</description>
                <environment>windows</environment>
        <key id="245111">CXX-789</key>
            <summary>Modify BSONObj</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="xyysnybzi">xie yang yang</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Mon, 28 Dec 2015 03:31:07 +0000</created>
                <updated>Wed, 11 Sep 2019 19:04:49 +0000</updated>
                            <resolved>Wed, 30 Dec 2015 16:14:22 +0000</resolved>
                                    <version>legacy-1.1.0</version>
                                                    <component>API</component>
                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1124009" author="acm" created="Wed, 30 Dec 2015 16:14:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=xyysnybzi&quot; class=&quot;user-hover&quot; rel=&quot;xyysnybzi&quot;&gt;xyysnybzi&lt;/a&gt; - I&apos;m glad you found a solution that works for you. I&apos;m closing this ticket but feel free to ping back on the ticket if you need further clarification.&lt;/p&gt;</comment>
                            <comment id="1123781" author="xyysnybzi" created="Wed, 30 Dec 2015 02:53:18 +0000"  >&lt;p&gt;Thank you! I have try to save them with boost::any and it seem work well, for the example i have find the APIs from source: BSONObjBuilder::appendElements(BSONObj x) and  BSONObjBuilder::appendElementsUnique(BSONObj x) and i will try them when i need.&lt;br/&gt;
Thank you again!&lt;/p&gt;</comment>
                            <comment id="1122789" author="acm" created="Mon, 28 Dec 2015 12:40:33 +0000"  >&lt;p&gt;I don&apos;t fully understand your question. Are you asking for a client side API that will allow you to locally modify in-memory BSON objects once you have retrieved them from the database? If so, we don&apos;t currently offer such an API in the C++ driver. You can, however, use the BSONObjBuilder and BSONArrayBuilder classes to start constructing a new object, and then write the changed and unchanged portions based on the BSONElement values extracted from the source object. Please let me know if you would like an example of how to do so.&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|hsf5vr:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="801">Platforms E (01/08/16)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>