<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:02 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-1237] The find fluent api should output shell syntax on ToString()</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1237</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When calling ToString() on the aggregate fluent api outputs a shell compatible syntax of the current pipeline. The same thing should be done for find.&lt;/p&gt;</description>
                <environment></environment>
        <key id="194919">CSHARP-1237</key>
            <summary>The find fluent api should output shell syntax on ToString()</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="craig.wilson@mongodb.com">Craig Wilson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Apr 2015 22:23:15 +0000</created>
                <updated>Thu, 16 Jul 2015 16:30:45 +0000</updated>
                            <resolved>Fri, 1 May 2015 10:03:25 +0000</resolved>
                                    <version>2.0</version>
                                    <fixVersion>2.0.1</fixVersion>
                    <fixVersion>2.1</fixVersion>
                                    <component>API</component>
                                        <votes>1</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="903799" author="suikevil" created="Sat, 2 May 2015 15:46:04 +0000"  >&lt;p&gt;Thanks for your quick response.&lt;/p&gt;

&lt;p&gt;I was thinking in something similar like &quot;Database.Log&quot; in EntityFramework, where, you can redirected all translated queries, updates, deletes and inserts to, for example, the Console.&lt;/p&gt;

&lt;p&gt;Anyway, I really appreciate what you have just done &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="903793" author="craiggwilson" created="Sat, 2 May 2015 15:09:16 +0000"  >&lt;p&gt;Hi Roberto,&lt;/p&gt;

&lt;p&gt;That&apos;s not possible. We can do this for Find() and for Aggregate() because they return a type we have control over. However, DeleteOneAsync, for instance, returns a Task&amp;lt;DeleteOneResult&amp;gt;. We can&apos;t add a ToString() implementation to it.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="903782" author="suikevil" created="Sat, 2 May 2015 13:37:36 +0000"  >&lt;p&gt;Thank you very much for your implementation.&lt;/p&gt;

&lt;p&gt;However, I think that it would be desirable to have this .ToString() implementation for every method of the IMongoCollection&amp;lt;TDocument&amp;gt; interface. (DeleteOneAsync, FindOneAndReplaceAsync, UpdateManyAsync...)&lt;/p&gt;

&lt;p&gt;Regards &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;
</comment>
                            <comment id="903005" author="xgen-internal-githook" created="Fri, 1 May 2015 10:03:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1237&quot; title=&quot;The find fluent api should output shell syntax on ToString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1237&quot;&gt;&lt;del&gt;CSHARP-1237&lt;/del&gt;&lt;/a&gt;: added ToString on FindFluent.&lt;br/&gt;
Branch: v2.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/94fc89f8130ba4c4e337231752d18540b121b095&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/94fc89f8130ba4c4e337231752d18540b121b095&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="902996" author="xgen-internal-githook" created="Fri, 1 May 2015 09:37:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1237&quot; title=&quot;The find fluent api should output shell syntax on ToString()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1237&quot;&gt;&lt;del&gt;CSHARP-1237&lt;/del&gt;&lt;/a&gt;: added ToString on FindFluent.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/5bce427ca733dc3d5a812bffb873aaad3eb6ec55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/5bce427ca733dc3d5a812bffb873aaad3eb6ec55&lt;/a&gt;&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|hs7uqn:</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="506">C# Sprint 19</customfieldvalue>

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