<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:54 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>[CSHARP-137] Make query builder more natural</title>
                <link>https://jira.mongodb.org/browse/CSHARP-137</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When building a query with the query builder, some combinations throw an InvalidOperationException because the query underlying structure is a document, for instance:&lt;/p&gt;

&lt;p&gt;                Query.Or(&lt;br/&gt;
                    Query.EQ(&quot;name&quot;, &quot;Flav&quot;),&lt;br/&gt;
                    Query.EQ(&quot;name&quot;, &quot;Flavien&quot;),&lt;br/&gt;
                    Query.EQ(&quot;value&quot;, &quot;Flavien&quot;)));&lt;/p&gt;

&lt;p&gt;Throws an exception because the &quot;name&quot; attribute is defined twice on the document. This makes sense for a document, but doesn&apos;t for a query. The query builder should process the query to turn it seamlessly into a document, and not throw those kind of exceptions.&lt;/p&gt;

&lt;p&gt;Also combining ORs inside ANDs should work, even if that is not supported by the engine, as the driver could change a query to its disjunctive form ( OR(AND(x, y), AND(a, b)) ), so that it is accespted by the engine.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="14041">CSHARP-137</key>
            <summary>Make query builder more natural</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="flavien">Flavien</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Dec 2010 00:38:49 +0000</created>
                <updated>Thu, 2 Apr 2015 18:27:52 +0000</updated>
                            <resolved>Thu, 20 Jan 2011 21:32:53 +0000</resolved>
                                    <version>0.5</version>
                    <version>0.7</version>
                    <version>0.9</version>
                    <version>1.0</version>
                                    <fixVersion>0.11</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="22534" author="rstam" created="Thu, 20 Jan 2011 21:32:53 +0000"  >&lt;p&gt;Merged in Andrew&apos;s pull request. Thanks Andrew.&lt;/p&gt;</comment>
                            <comment id="22126" author="gwbasic" created="Wed, 5 Jan 2011 23:15:52 +0000"  >&lt;p&gt;Potentially fixed in pull request &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/36&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/36&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21834" author="rstam" created="Mon, 27 Dec 2010 23:36:41 +0000"  >&lt;p&gt;Query.Or should already work. The duplicate name exception would occur when using Query.And.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrh9h3:</customfieldvalue>

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