<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:52 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-1864] get JSON query to mongo on aggregation as string</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1864</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;IS it possible to get JSON (as string) for mongo from C#  in code.&lt;br/&gt;
Visual Studio Watch show&apos;s the string, but how to get it in code I can&apos;t understand.  &lt;/p&gt;

&lt;p&gt;^var aggregate = procuraCollection.Aggregate(new AggregateOptions() &lt;/p&gt;
{ AllowDiskUse = true, UseCursor = true }
&lt;p&gt;);&lt;br/&gt;
 var dd2 = Builders&amp;lt;BsonDocument&amp;gt;.Filter.Eq(&quot;RepositoryId&quot;, this.repositoryId);&lt;br/&gt;
 aggregate = aggregate.Match(dd2);&lt;br/&gt;
 var json= ?????;^&lt;/p&gt;</description>
                <environment>.NET c#</environment>
        <key id="336931">CSHARP-1864</key>
            <summary>get JSON query to mongo on aggregation as string</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="AlexZ">Alexander Zel</reporter>
                        <labels>
                            <label>Feature</label>
                            <label>question</label>
                    </labels>
                <created>Wed, 7 Dec 2016 12:04:02 +0000</created>
                <updated>Fri, 5 Apr 2019 13:59:30 +0000</updated>
                            <resolved>Wed, 7 Dec 2016 14:20:10 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1451139" author="alexz" created="Wed, 7 Dec 2016 12:10:10 +0000"  >&lt;p&gt;Console.WriteLine(aggregate.ToString());&lt;br/&gt;
&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.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>
                    </comments>
                    <attachments>
                            <attachment id="145481" name="ZWEku[1].png" size="14624" author="AlexZ" created="Wed, 7 Dec 2016 12:02:06 +0000"/>
                    </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|hssmdr:</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>