<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:43 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-1125] Add an implicit conversion from string to BsonDocument that parses the string</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1125</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The new CRUD API allows you to use strings where a document is expected, and converts the string to a BsonDocument by assuming it is a JSON string and parsing it.&lt;/p&gt;

&lt;p&gt;If we want to make it easy to provide BsonDocument values using strings in as many places as possible we might as well provide an implicit conversion from string to BsonDocument that parses the string.&lt;/p&gt;

&lt;p&gt;Before actually implementing this we should consider whether this would result in a big hole in type safety. The issue is that if one accidentally writes code that uses a string where a BsonDocument is expected one would no longer get a compile time error (one would likely get a runtime error if the string doesn&apos;t happen to be a valid JSON document). On the other hand, being able to provide BsonDocuments using string constants would be incredibly convenient.&lt;/p&gt;

&lt;p&gt;The other issue is that parsing strings to provide BsonDocument values involves the considerable overhead of parsing the string, and if we make it too easy to convert strings to BsonDocuments we may be encouraging our users to write inefficient code.&lt;/p&gt;</description>
                <environment></environment>
        <key id="170531">CSHARP-1125</key>
            <summary>Add an implicit conversion from string to BsonDocument that parses the string</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Nov 2014 21:19:56 +0000</created>
                <updated>Mon, 25 Mar 2019 19:44:22 +0000</updated>
                            <resolved>Mon, 25 Mar 2019 19:44:22 +0000</resolved>
                                                                    <component>BSON</component>
                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="2191009" author="ian@10gen.com" created="Mon, 25 Mar 2019 19:44:22 +0000"  >&lt;p&gt;Given the lack of votes or activity on this idea (and that it would be somewhat unsafe because it sacrifices some type safety) we are closing as won&apos;t fix.&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|hsmeb3:</customfieldvalue>

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