<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:51 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>[GODRIVER-740] Add example for the aggregation framework usage</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-740</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Using the aggregation framework in mongodb-go-driver is not trivial, e.g. building the pipeline: the first guess, a slice of &lt;tt&gt;bson.Ds&lt;/tt&gt; or a &lt;tt&gt;bson.A&lt;/tt&gt; are not working, but only &lt;b&gt;&lt;tt&gt;Pipeline&lt;/tt&gt;&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;That why a usage example is needed, with a simple code, just to expose the relevant APIs and types and how a working aggregation code looks like.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="663777">GODRIVER-740</key>
            <summary>Add example for the aggregation framework usage</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="3">Duplicate</resolution>
                                        <assignee username="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="nahsh">Nahshon Unna-Tsameret</reporter>
                        <labels>
                            <label>aggregation</label>
                            <label>driver</label>
                            <label>go</label>
                            <label>golang</label>
                    </labels>
                <created>Tue, 1 Jan 2019 06:46:57 +0000</created>
                <updated>Tue, 8 Oct 2019 14:26:21 +0000</updated>
                            <resolved>Tue, 8 Oct 2019 14:26:21 +0000</resolved>
                                    <version>0.0.15</version>
                                                    <component>Documentation</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2471552" author="divjot.arora" created="Tue, 8 Oct 2019 14:26:21 +0000"  >&lt;p&gt;closing as duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-225&quot; title=&quot;Aggregation, runCommand, and index management examples for Docs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-225&quot;&gt;&lt;del&gt;GODRIVER-225&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2138089" author="scott.lhommedieu" created="Tue, 5 Feb 2019 15:28:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nahsh&quot; class=&quot;user-hover&quot; rel=&quot;nahsh&quot;&gt;nahsh&lt;/a&gt;, Thanks for the PR!&#160; As &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kris.brandow&quot; class=&quot;user-hover&quot; rel=&quot;kris.brandow&quot;&gt;kris.brandow&lt;/a&gt; mentioned the examples as you&apos;ve submitted won&apos;t generate the output that would provide a visible doc example.&lt;br/&gt;
I do understand the need for these agg examples.&#160; &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-225&quot; title=&quot;Aggregation, runCommand, and index management examples for Docs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-225&quot;&gt;&lt;del&gt;GODRIVER-225&lt;/del&gt;&lt;/a&gt; specifies these examples.&#160; You can follow that ticket to completion or participate if you&apos;d like.&lt;/p&gt;</comment>
                            <comment id="2137364" author="ian@10gen.com" created="Mon, 4 Feb 2019 21:32:43 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nahsh&quot; class=&quot;user-hover&quot; rel=&quot;nahsh&quot;&gt;nahsh&lt;/a&gt;, thanks a lot&#160; for the suggestion - we can&apos;t integrate this&#160;PR as posted because it won&apos;t actually generate docs pages likes all of the other examples do.&#160;&#160;We really like the idea of expanding agg examples in the docs, however, and are going to look into doing this across all drivers.&lt;/p&gt;</comment>
                            <comment id="2115210" author="nahsh" created="Tue, 15 Jan 2019 06:56:10 +0000"  >&lt;p&gt;Hi Kris. Thanks for your comment. The bug above is not the whole story, and I added []bson.D and []bson.M example. the main issue is the lack of any aggregation example.&lt;/p&gt;</comment>
                            <comment id="2106149" author="kris.brandow" created="Fri, 4 Jan 2019 21:35:44 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nahsh&quot; class=&quot;user-hover&quot; rel=&quot;nahsh&quot;&gt;nahsh&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The issue with &lt;tt&gt;[]bson.D&lt;/tt&gt; and &lt;tt&gt;bson.A&lt;/tt&gt; was resolved in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-679&quot; title=&quot;Aggregate does not accept a bson.A as the pipeline&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-679&quot;&gt;&lt;del&gt;GODRIVER-679&lt;/del&gt;&lt;/a&gt;, and a slice of any type that can be converted into a BSON document should be a valid parameter to &lt;tt&gt;Collection.Aggregate&lt;/tt&gt;. The fix will be available in the next beta release.&lt;/p&gt;

&lt;p&gt;--Kris&lt;/p&gt;</comment>
                            <comment id="2102716" author="nahsh" created="Tue, 1 Jan 2019 07:11:07 +0000"  >&lt;p&gt;Pull request with a working example:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/129&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/129&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|hu7xrj:</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>