<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:03:49 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>[JAVA-5129] Can CRUD method options be specified as a BSON document?</title>
                <link>https://jira.mongodb.org/browse/JAVA-5129</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When using pipeline functions, options cannot be customized and can only be done through the provided methods. If I have seen options written to BSONDocument, they cannot be passed in. Is there a way to pass them in?&lt;/p&gt;</description>
                <environment></environment>
        <key id="2431390">JAVA-5129</key>
            <summary>Can CRUD method options be specified as a BSON document?</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="j15030047216@163.com">chaoyang jia</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Aug 2023 14:24:24 +0000</created>
                <updated>Fri, 1 Sep 2023 00:05:02 +0000</updated>
                            <resolved>Fri, 1 Sep 2023 00:05:02 +0000</resolved>
                                    <version>4.9.0</version>
                                                    <component>Aggregation</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5673631" author="jeff.yemin" created="Fri, 1 Sep 2023 00:04:31 +0000"  >&lt;p&gt;No, there is not a way to specify options via a BSON document, nor do we have any plans to add such functionality.  As a workaround, you could write a simple helper method that translates your options into method calls on &lt;tt&gt;AggregateIterable&lt;/tt&gt; (we do &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/r4.10.2/driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedCrudHelper.java#L580-L600&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;a similar thing&lt;/a&gt; in one of our test harnesses).&lt;/p&gt;</comment>
                            <comment id="5672104" author="JIRAUSER1273005" created="Thu, 31 Aug 2023 14:38:30 +0000"  >&lt;p&gt;I am using a pipeline, MongoCollection. aggregate (pipeline), but my options parameter is a BasicDBObject object. I cannot give options to the aggregate method, can I only use some of the options methods you provide? Methods such as comments&lt;/p&gt;</comment>
                            <comment id="5672061" author="JIRAUSER1273005" created="Thu, 31 Aug 2023 14:27:50 +0000"  >&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/472734/472734_image-2023-08-31-22-27-16-976.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; this is my code&lt;/p&gt;</comment>
                            <comment id="5672049" author="dbeng-pm-bot" created="Thu, 31 Aug 2023 14:24:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=j15030047216%40163.com&quot; class=&quot;user-hover&quot; rel=&quot;j15030047216@163.com&quot;&gt;j15030047216@163.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="472734" name="image-2023-08-31-22-27-16-976.png" size="56758" author="j15030047216@163.com" created="Thu, 31 Aug 2023 14:27:18 +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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i26bek:</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>