<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:48:34 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-4549] Support Tuple.Create and ValueTuple.Create in projections</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4549</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description></description>
                <environment></environment>
        <key id="2276494">CSHARP-4549</key>
            <summary>Support Tuple.Create and ValueTuple.Create in projections</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Feb 2023 22:45:09 +0000</created>
                <updated>Sat, 28 Oct 2023 11:46:57 +0000</updated>
                            <resolved>Wed, 22 Mar 2023 21:27:30 +0000</resolved>
                                    <version>2.19.0</version>
                                    <fixVersion>2.19.1</fixVersion>
                                    <component>LINQ3</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5299677" author="xgen-internal-githook" created="Fri, 24 Mar 2023 19:00:24 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4549&quot; title=&quot;Support Tuple.Create and ValueTuple.Create in projections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4549&quot;&gt;&lt;del&gt;CSHARP-4549&lt;/del&gt;&lt;/a&gt;: Better support for Tuples and ValueTuples in LINQ3.&lt;br/&gt;
Branch: v2.19.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/5e27219635d7cc731a9643147969e86af9710b0d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/5e27219635d7cc731a9643147969e86af9710b0d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5293654" author="xgen-internal-githook" created="Wed, 22 Mar 2023 21:25:55 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4549&quot; title=&quot;Support Tuple.Create and ValueTuple.Create in projections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4549&quot;&gt;&lt;del&gt;CSHARP-4549&lt;/del&gt;&lt;/a&gt;: Better support for Tuples and ValueTuples in LINQ3.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/5ee839efa81d66e8c27c6eecf16133afd6caea8a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/5ee839efa81d66e8c27c6eecf16133afd6caea8a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5275801" author="rstam" created="Wed, 15 Mar 2023 21:08:33 +0000"  >&lt;p&gt;Thank you for reporting this.&lt;/p&gt;

&lt;p&gt;It ended being a bit of an overhaul of Tuple support in LINQ in general, not just adding support for the Create methods.&lt;/p&gt;

&lt;p&gt;The main change is that Tuples (as well as ValueTuples) are now serialized as arrays in LINQ the same way a Tuple property of a POCO would have been serialized.&lt;/p&gt;

&lt;p&gt;That also meant that tuple item references like `tuple.Item&amp;lt;n&amp;gt;` had to be translated to either `tuple.&amp;lt;n&amp;gt;` (in filters) or `&lt;/p&gt;
{ $arrayElemAt : &#160;[&quot;$tuple&quot;, &amp;lt;n&amp;gt;] }
&lt;p&gt;` (in aggregation expressions).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2284959">CSHARP-4564</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2275395">CSHARP-4548</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1gh0g:</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>