Skip to content

Commit 5dce065

Browse files
authored
DOCSP-45398-detail-large-number-queries (#742)
* add large integer limit note * fix note syntax * formatting * change wording * wording * grammar * wording * jp suggestion * bb feedback
1 parent 8fe119f commit 5dce065

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

source/includes/large-number-note.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. note:: Large Integer Limitations
2+
3+
To query for integers larger than the JavaScript maximum integer size,
4+
wrap the integer in string characters and pass the integer to the ``NumberLong()`` constructor.
5+
6+
For example, to find all documents with a ``number`` value of ``507550989629521900``, use
7+
this query filter:
8+
9+
.. code-block:: javascript
10+
11+
{ "number" : NumberLong("507550989629521900") }

source/query/filter.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Set Query Filter
6464
:lightbox:
6565
:alt: Results of applying a query filter
6666

67+
.. include:: /includes/large-number-note.rst
68+
6769
Examples
6870
--------
6971

0 commit comments

Comments
 (0)