Skip to content

Commit 263e2ae

Browse files
DOCSP-4618: Note that $slice operator doesn't work for projection (#123)
* (DOCSP-4618): Changed ToC depth, created Limitations section * (DOCSP-4618): Refactored bullets in limitations section * (DOCSP-4618) Deleted the old text * (DOCSP-4618) Review edits * (DOCSP-4618): Reworded for active voice * (DOCSP-4618): CHange 'fields' to 'options'
1 parent 2740fb1 commit 263e2ae

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

source/query-bar.txt

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Query Bar
99
.. contents:: On this page
1010
:local:
1111
:backlinks: none
12-
:depth: 1
12+
:depth: 2
1313
:class: singlecol
1414

1515
From the :ref:`Documents <compass-documents>`, :ref:`Schema
@@ -58,15 +58,6 @@ options of the query.
5858

5959
- The upper limit for the number of documents to return.
6060

61-
.. note::
62-
63-
|compass| does not support the :manual:`$near
64-
</reference/operator/query/near/>` and
65-
:manual:`$nearSphere </reference/operator/query/nearSphere/>`
66-
geospatial query operators in any of the query bar
67-
fields, because they do not provide any additional functionality in
68-
the :ref:`schema view <schema-tab>`.
69-
7061
.. _querying:
7162

7263
Query Bar Options
@@ -163,14 +154,6 @@ projection document:
163154
All fields except for the fields specified in the project document
164155
are returned.
165156

166-
.. note::
167-
168-
With the exception of the ``_id`` field, you cannot specify both
169-
field inclusion and field exclusion in the project document. With
170-
the ``_id`` field, you can specify its exclusion in a project
171-
document that specifies field inclusions. For example,
172-
``{ year: 1, _id: 0 }``.
173-
174157
For more information on projection, refer to the
175158
:ref:`MongoDB Manual <find-projection>`.
176159

@@ -323,9 +306,23 @@ as favorites. To view the list of queries saved as favorites, click on
323306
.. figure:: /images/compass/query-history-favorite.png
324307
:figwidth: 316px
325308

309+
Limitations
310+
-----------
311+
312+
- The query bar options do not support the :manual:`$near
313+
</reference/operator/query/near/>` and
314+
:manual:`$nearSphere </reference/operator/query/nearSphere/>`
315+
geospatial query operators, because they do not provide any additional
316+
functionality in the :ref:`schema view <schema-tab>`.
317+
318+
- The :ref:`Project <query-bar-project>` query bar option does not
319+
support the :manual:`$slice </reference/operator/projection/slice/>`
320+
operator.
321+
326322
.. class:: hidden
327323

328324
.. toctree::
329325
:titlesonly:
330326

331327
/export-query-to-language
328+

0 commit comments

Comments
 (0)