<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:13:45 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>[CDRIVER-1968] Does the 1.5.0 support views?</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1968</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
I used mongoc_collection_find_with_opts() to retrieve on a view with opts sort:{$natural:1} and got error message: &lt;br/&gt;
&quot;Error from MongoDB Client: FieldPath field names may not start with &apos;$&apos;. (Error Code: 16410)&quot;&lt;br/&gt;
Meanwhile, the same call on a real collection can be handled well.&lt;/p&gt;

&lt;p&gt;I searched the source code and release notes using key word &quot;view&quot; and browse the api reference, but still have no clue how well the view gets supported.&lt;br/&gt;
I would appreciate if you could please give me some info about it.&lt;br/&gt;
At least, is there a way to distinguish if a collection is a view through c driver?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;
</description>
                <environment>windows </environment>
        <key id="341426">CDRIVER-1968</key>
            <summary>Does the 1.5.0 support views?</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="chang su">chang</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Dec 2016 22:21:07 +0000</created>
                <updated>Wed, 11 Sep 2019 19:04:29 +0000</updated>
                            <resolved>Thu, 29 Dec 2016 18:49:36 +0000</resolved>
                                    <version>1.5.0</version>
                                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1466595" author="bjori" created="Thu, 29 Dec 2016 18:07:33 +0000"  >&lt;p&gt;Yes, the &lt;tt&gt;1.5.0&lt;/tt&gt; release does support view. There is actually not anything for a driver to support for in terms of using views, they are represented as collection so there isn&apos;t anything special we need to do to use them &amp;#8211; however, creating them requires creating a &lt;tt&gt;special collection&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Unfortunately, views have some limitation, such as not supporting &lt;tt&gt;$natural&lt;/tt&gt; at the moment.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://docs.mongodb.com/manual/core/views/#reference-views&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/core/views/#reference-views&lt;/a&gt; for further details&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|hst8gf:</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="1481">C Driver 2017 1 - Jan 20, 2017</customfieldvalue>

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