<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:02: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>[DOCS-11459] Add examples for jsonSchema queries in online documentation</title>
                <link>https://jira.mongodb.org/browse/DOCS-11459</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Hi Team&lt;/p&gt;

&lt;p&gt;I had a very hard finding how to query documents that satisfy (or not) a jsonSchema.&lt;/p&gt;

&lt;p&gt;Asya gave me the code :&lt;br/&gt;
`db.collection.find({$jsonSchema:{&amp;lt;schema-here&amp;gt;}})` to find matching and `db.collection.find({$nor:&lt;span class=&quot;error&quot;&gt;&amp;#91;{$jsonSchema:{&amp;lt;schema-here&amp;gt;}}&amp;#93;&lt;/span&gt;})` to find non-matching.&lt;/p&gt;

&lt;p&gt;Yet in the $jsonSchema page of our documentation, it lacks code examples in my opinion :&lt;br/&gt;
&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would suggest to add the above queries examples&lt;/p&gt;</description>
                <environment>&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema&lt;/a&gt;</environment>
        <key id="511726">DOCS-11459</key>
            <summary>Add examples for jsonSchema queries in online documentation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13201">Fixed</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="guillaume.meister@mongodb.com">Guillaume Meister</reporter>
                        <labels>
                            <label>document</label>
                            <label>example</label>
                            <label>jsonschema</label>
                            <label>query</label>
                    </labels>
                <created>Thu, 15 Mar 2018 11:38:23 +0000</created>
                <updated>Mon, 30 Oct 2023 22:21:51 +0000</updated>
                            <resolved>Thu, 11 Jul 2019 19:27:16 +0000</resolved>
                                    <version>3.6</version>
                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2321766" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:48:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message:  &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;:  examples &amp;#8211; tweak&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/b407fe070e6c7131699d974fcf517cc928544ac7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/b407fe070e6c7131699d974fcf517cc928544ac7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2321765" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:48:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message:  &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;:  examples &amp;#8211; tweak&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/c2056402e9af4eb829585d0793e96da82a6cf507&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/c2056402e9af4eb829585d0793e96da82a6cf507&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2321763" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:47:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message:  &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;:  examples &amp;#8211; tweak&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/243fdee2cae2b13796ceadc6f57257919209d474&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/243fdee2cae2b13796ceadc6f57257919209d474&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2321723" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:25:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;: $jsonSchema examples&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/3e68550ba4acc5def7424f650a2cac727ddaa9cd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/3e68550ba4acc5def7424f650a2cac727ddaa9cd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2321721" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:23:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;: $jsonSchema examples&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/a1069375a1f1f121c5b17f3241b6ce8e0647edb7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/a1069375a1f1f121c5b17f3241b6ce8e0647edb7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2321719" author="xgen-internal-githook" created="Thu, 11 Jul 2019 19:23:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11459&quot; title=&quot;Add examples for jsonSchema queries in online documentation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11459&quot;&gt;&lt;del&gt;DOCS-11459&lt;/del&gt;&lt;/a&gt;: $jsonSchema examples&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/8fc46fc9ad9420a13ea7f3bd45636c086446ed66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/8fc46fc9ad9420a13ea7f3bd45636c086446ed66&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2318087" author="kay.kim@10gen.com" created="Wed, 10 Jul 2019 00:13:26 +0000"  >&lt;p&gt;Will also use this ticket to fix existing examples with improper dot-notation.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 10 Jul 2019 00:13:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 30 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-1769</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 30 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>guillaume.meister@mongodb.com</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htsqaf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htk28v:</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.5</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htschr:</customfieldvalue>

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