<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:14 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-575] MapReduce(query, map, reduce) should have overload that takes an IQueryable&lt;T&gt; for query</title>
                <link>https://jira.mongodb.org/browse/CSHARP-575</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Many collection operations that take a query can take either an IMongoQuery or an IQueryable&amp;lt;T&amp;gt;.  MapReduce only has the option of IMongoQuery and it should alternatively be able to take an IQueryable&amp;lt;T&amp;gt; for filtering.&lt;/p&gt;</description>
                <environment></environment>
        <key id="50913">CSHARP-575</key>
            <summary>MapReduce(query, map, reduce) should have overload that takes an IQueryable&lt;T&gt; for query</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="ajepst">Anne Epstein</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Sep 2012 21:53:12 +0000</created>
                <updated>Thu, 20 Mar 2014 14:35:34 +0000</updated>
                            <resolved>Mon, 12 Nov 2012 17:46:17 +0000</resolved>
                                    <version>1.5</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="186754" author="craiggwilson" created="Mon, 12 Nov 2012 17:46:18 +0000"  >&lt;p&gt;Cool.  Will close.  You can always write an extension method for that piece.  &lt;/p&gt;</comment>
                            <comment id="186708" author="ajepst" created="Mon, 12 Nov 2012 17:06:17 +0000"  >&lt;p&gt;Yes, this issue can be closed. In my application, we pass in Linq-style filtering expressions from places that do not have Mongo references into our internal querying libraries that handle those queries. (keeping core logic away from hard Mongo dependencies)  Simple queries with the Mongo Linq libraries can work directly with these expressions, but this pattern did not work when we hit a case requiring MapReduce, which requires the Mongo-specific IMongoQuery.  We got around this when we discovered it was possible to get an IMongoQuery from an mongo-independent IQueryable, like so: &lt;/p&gt;

&lt;p&gt;((MongoQueryable&amp;lt;T&amp;gt;) myQueryable).GetMongoQuery()&lt;/p&gt;

&lt;p&gt;It would still be nice to call directly with the IQueryable and save a line of code, but with the conversion above, we didn&apos;t have to rework our architecture, so it&apos;s really not a problem.  &lt;/p&gt;

&lt;p&gt;Thanks for following up!&lt;/p&gt;</comment>
                            <comment id="186627" author="craiggwilson" created="Mon, 12 Nov 2012 16:05:55 +0000"  >&lt;p&gt;Anne, is Robert&apos;s suggestion above what you were thinking?  If so, we&apos;d like to close this issue.&lt;/p&gt;</comment>
                            <comment id="167506" author="rstam" created="Mon, 24 Sep 2012 20:31:18 +0000"  >&lt;p&gt;I don&apos;t see any methods in MongoCollection that take an IQueryable&amp;lt;T&amp;gt; parameter.&lt;/p&gt;

&lt;p&gt;You can always use the typed Query builder to create an IMongoQuery, like this:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var query = Query&amp;lt;C&amp;gt;.EQ(c =&amp;gt; c.X, 123);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var map = &quot;...&quot;;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var reduce = &quot;...&quot;;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var result = collection.MapReduce(query, map, reduce);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Is that what you had in mind?&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|hriafz:</customfieldvalue>

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