<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:32 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>[JAVA-1399] Using BasicDBObjects, what happens if I append the same key more than once?</title>
                <link>https://jira.mongodb.org/browse/JAVA-1399</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I haven&apos;t found in any javadoc or documentation what&apos;s the behavior of the BasicDBObject.append() with this code:&lt;/p&gt;

&lt;p&gt;BasicDBObject query;&lt;br/&gt;
query.append(&quot;propertyName&quot;, value);&lt;br/&gt;
.... // more code, maybe a loop&lt;br/&gt;
query.append(&quot;propertyName&quot;, anotherValue);&lt;/p&gt;

&lt;p&gt;Is this the JS equivalent of: query = &lt;/p&gt;
{propertyName: value, propertyName:anotherValue}
&lt;p&gt; ? &lt;/p&gt;

&lt;p&gt;I know what does exactly happen in JS, but in Java I&apos;m not sure.&lt;/p&gt;</description>
                <environment></environment>
        <key id="153702">JAVA-1399</key>
            <summary>Using BasicDBObjects, what happens if I append the same key more than once?</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="antonimmo">Antonio Quintana</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Aug 2014 22:47:26 +0000</created>
                <updated>Wed, 11 Sep 2019 19:11:22 +0000</updated>
                            <resolved>Wed, 20 Aug 2014 08:35:50 +0000</resolved>
                                    <version>2.12.3</version>
                                                    <component>Documentation</component>
                    <component>Query Operations</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="696480" author="ross@10gen.com" created="Wed, 20 Aug 2014 08:35:50 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I&apos;m closing this as Jeff answered your question.  Just for future reference the JAVA project is for reporting bugs and feature requests regarding the Java driver itself. The best place for questions regarding MongoDB usage or the Java driver specifics is the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailinglist&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stackoverflow&lt;/a&gt; as you will reach a boarder audience there.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="696099" author="jeff.yemin" created="Tue, 19 Aug 2014 23:50:22 +0000"  >&lt;p&gt;It&apos;s last one wins.  Underneath it&apos;s a Map with the property name as the key&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|hs1inj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>133434</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>