Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson authored and github-actions[bot] committed Jul 15, 2024
1 parent 4b219d3 commit c801d01
Show file tree
Hide file tree
Showing 162 changed files with 1,935 additions and 1,802 deletions.
8 changes: 4 additions & 4 deletions docs/Next/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-2: #0000FF;
--dark-hl-2: #569CD6;
--light-hl-3: #A31515;
--dark-hl-3: #CE9178;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-5: #0070C1;
Expand Down
2 changes: 1 addition & 1 deletion docs/Next/assets/search.js

Large diffs are not rendered by default.

102 changes: 57 additions & 45 deletions docs/Next/classes/AbstractCursor.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Next/classes/Admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Class Admin</h1></div>
<p><strong>ADMIN Cannot directly be instantiated</strong></p>
</div>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><pre><code class="language-ts"><span class="hl-7">import</span><span class="hl-1"> { </span><span class="hl-6">MongoClient</span><span class="hl-1"> } </span><span class="hl-7">from</span><span class="hl-1"> </span><span class="hl-2">&#39;mongodb&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-5">client</span><span class="hl-1"> = </span><span class="hl-3">new</span><span class="hl-1"> </span><span class="hl-0">MongoClient</span><span class="hl-1">(</span><span class="hl-2">&#39;mongodb://localhost:27017&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-5">admin</span><span class="hl-1"> = </span><span class="hl-6">client</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">().</span><span class="hl-0">admin</span><span class="hl-1">();</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-5">dbInfo</span><span class="hl-1"> = </span><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">admin</span><span class="hl-1">.</span><span class="hl-0">listDatabases</span><span class="hl-1">();</span><br/><span class="hl-7">for</span><span class="hl-1"> (</span><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-5">db</span><span class="hl-1"> </span><span class="hl-3">of</span><span class="hl-1"> </span><span class="hl-6">dbInfo</span><span class="hl-1">.</span><span class="hl-6">databases</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-6">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-6">db</span><span class="hl-1">.</span><span class="hl-6">name</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
<h4>Example</h4><pre><code class="language-ts"><span class="hl-7">import</span><span class="hl-1"> { </span><span class="hl-6">MongoClient</span><span class="hl-1"> } </span><span class="hl-7">from</span><span class="hl-1"> </span><span class="hl-3">&#39;mongodb&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-5">client</span><span class="hl-1"> = </span><span class="hl-2">new</span><span class="hl-1"> </span><span class="hl-0">MongoClient</span><span class="hl-1">(</span><span class="hl-3">&#39;mongodb://localhost:27017&#39;</span><span class="hl-1">);</span><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-5">admin</span><span class="hl-1"> = </span><span class="hl-6">client</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">().</span><span class="hl-0">admin</span><span class="hl-1">();</span><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-5">dbInfo</span><span class="hl-1"> = </span><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">admin</span><span class="hl-1">.</span><span class="hl-0">listDatabases</span><span class="hl-1">();</span><br/><span class="hl-7">for</span><span class="hl-1"> (</span><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-5">db</span><span class="hl-1"> </span><span class="hl-2">of</span><span class="hl-1"> </span><span class="hl-6">dbInfo</span><span class="hl-1">.</span><span class="hl-6">databases</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-6">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-6">db</span><span class="hl-1">.</span><span class="hl-6">name</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
</code><button>Copy</button></pre>
</div></section>
<section class="tsd-panel tsd-hierarchy">
Expand Down
132 changes: 72 additions & 60 deletions docs/Next/classes/AggregationCursor.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Next/classes/BSON.Decimal128.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h5><span class="tsd-kind-parameter">representation</span>: <span class="tsd-sig
<h4 class="tsd-returns-title">Returns <a href="BSON.Decimal128.html" class="tsd-signature-type tsd-kind-class">Decimal128</a></h4>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><p>Example of a number that will be rounded</p>
<pre><code class="language-ts"><span class="hl-1">&gt; </span><span class="hl-3">let</span><span class="hl-1"> </span><span class="hl-6">d</span><span class="hl-1"> = </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromString</span><span class="hl-1">(</span><span class="hl-2">&#39;37.499999999999999196428571428571375&#39;</span><span class="hl-1">)</span><br/><span class="hl-10">Uncaught</span><span class="hl-1">:</span><br/><span class="hl-10">BSONError</span><span class="hl-1">: </span><span class="hl-2">&quot;37.499999999999999196428571428571375&quot;</span><span class="hl-1"> </span><span class="hl-6">is</span><span class="hl-1"> </span><span class="hl-6">not</span><span class="hl-1"> </span><span class="hl-6">a</span><span class="hl-1"> </span><span class="hl-6">valid</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1"> </span><span class="hl-6">string</span><span class="hl-1"> - </span><span class="hl-6">inexact</span><span class="hl-1"> </span><span class="hl-6">rounding</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-0">invalidErr</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1402</span><span class="hl-1">:</span><span class="hl-8">11</span><span class="hl-1">)</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromStringInternal</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1633</span><span class="hl-1">:</span><span class="hl-8">25</span><span class="hl-1">)</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromString</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1424</span><span class="hl-1">:</span><span class="hl-8">27</span><span class="hl-1">)</span><br/><br/><span class="hl-1">&gt; </span><span class="hl-6">d</span><span class="hl-1"> = </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromStringWithRounding</span><span class="hl-1">(</span><span class="hl-2">&#39;37.499999999999999196428571428571375&#39;</span><span class="hl-1">)</span><br/><span class="hl-3">new</span><span class="hl-1"> </span><span class="hl-0">Decimal128</span><span class="hl-1">(</span><span class="hl-2">&quot;37.49999999999999919642857142857138&quot;</span><span class="hl-1">)</span>
<pre><code class="language-ts"><span class="hl-1">&gt; </span><span class="hl-2">let</span><span class="hl-1"> </span><span class="hl-6">d</span><span class="hl-1"> = </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromString</span><span class="hl-1">(</span><span class="hl-3">&#39;37.499999999999999196428571428571375&#39;</span><span class="hl-1">)</span><br/><span class="hl-10">Uncaught</span><span class="hl-1">:</span><br/><span class="hl-10">BSONError</span><span class="hl-1">: </span><span class="hl-3">&quot;37.499999999999999196428571428571375&quot;</span><span class="hl-1"> </span><span class="hl-6">is</span><span class="hl-1"> </span><span class="hl-6">not</span><span class="hl-1"> </span><span class="hl-6">a</span><span class="hl-1"> </span><span class="hl-6">valid</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1"> </span><span class="hl-6">string</span><span class="hl-1"> - </span><span class="hl-6">inexact</span><span class="hl-1"> </span><span class="hl-6">rounding</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-0">invalidErr</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1402</span><span class="hl-1">:</span><span class="hl-8">11</span><span class="hl-1">)</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromStringInternal</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1633</span><span class="hl-1">:</span><span class="hl-8">25</span><span class="hl-1">)</span><br/><span class="hl-6">at</span><span class="hl-1"> </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromString</span><span class="hl-1"> (/</span><span class="hl-6">home</span><span class="hl-1">/</span><span class="hl-6">wajames</span><span class="hl-1">/</span><span class="hl-6">js</span><span class="hl-1">-</span><span class="hl-6">bson</span><span class="hl-1">/</span><span class="hl-6">lib</span><span class="hl-1">/</span><span class="hl-6">bson</span><span class="hl-1">.</span><span class="hl-6">cjs</span><span class="hl-1">:</span><span class="hl-8">1424</span><span class="hl-1">:</span><span class="hl-8">27</span><span class="hl-1">)</span><br/><br/><span class="hl-1">&gt; </span><span class="hl-6">d</span><span class="hl-1"> = </span><span class="hl-6">Decimal128</span><span class="hl-1">.</span><span class="hl-0">fromStringWithRounding</span><span class="hl-1">(</span><span class="hl-3">&#39;37.499999999999999196428571428571375&#39;</span><span class="hl-1">)</span><br/><span class="hl-2">new</span><span class="hl-1"> </span><span class="hl-0">Decimal128</span><span class="hl-1">(</span><span class="hl-3">&quot;37.49999999999999919642857142857138&quot;</span><span class="hl-1">)</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
Expand Down
Loading

0 comments on commit c801d01

Please sign in to comment.