Skip to content

DOCS-1852: update reference-operators page #1258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions bin/builddata/htaccess.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,42 @@ code: 303
outputs:
- 'v2.2'
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need more redirects for the other new files...

also to actually move the file as noted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, barring htaccess confusion.

redirect-path: '/reference/operator/query-javascript'
url-base: '/reference/operator/query-evaluation'
type: 'redirect'
code: 301
outputs:
- 'master'
- 'manual'
---
redirect-path: '/reference/operator/query-evaluation'
url-base: '/reference/operators'
type: 'redirect'
code: 303
outputs:
- 'v2.2'
---
redirect-path: '/reference/operator/nav-meta-query'
url-base: '/reference/meta-query-operators'
type: 'redirect'
code: 303
outputs:
- 'v2.2'
---
redirect-path: '/reference/operator/nav-query'
url-base: '/reference/operators/#query-selectors'
type: 'redirect'
code: 303
outputs:
- 'v2.2'
---
redirect-path: '/reference/operator/nav-update'
url-base: '/reference/operators/#update
type: 'redirect'
code: 303
outputs:
- 'v2.2'
---
redirect-path: '/MongoDB-manual.tar.gz'
url-base: '/mongodb-manual.tar.gz'
type: 'redirect'
Expand Down
4 changes: 4 additions & 0 deletions source/includes/ref-toc-operator-query-array.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
name: ":operator:`$all`"
file: /reference/operator/all
description: "Matches arrays that contain all elements specified in the query."
---
name: ":operator:`$elemMatch`"
file: /reference/operator/elemMatch
description: "Selects documents if element in the array field matches all the specified :operator:`$elemMatch` condition."
Expand Down
4 changes: 0 additions & 4 deletions source/includes/ref-toc-operator-query-comparison.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
name: :operator:`$all`
file: /reference/operator/all
description: "Matches arrays that contain all elements specified in the query."
---
name: ":operator:`$gt`"
file: /reference/operator/gt
description: "Matches values that are greater than the value specified in the query."
Expand Down
4 changes: 0 additions & 4 deletions source/includes/ref-toc-operator-query-element.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: ":operator:`$exists`"
file: /reference/operator/exists
description: "Matches documents that have the specified field."
---
name: ":operator:`$mod`"
file: /reference/operator/mod
description: "Performs a modulo operation on the value of a field and selects documents with a specified result."
---
name: ":operator:`$type`"
file: /reference/operator/type
description: "Selects documents if a field is of the specified type."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: ":operator:`$where`"
file: /reference/operator/where
description: "Matches documents that satisfy a JavaScript expression."
name: ":operator:`$mod`"
file: /reference/operator/mod
description: "Performs a modulo operation on the value of a field and selects documents with a specified result."
---
name: ":operator:`$regex`"
file: /reference/operator/regex
description: "Selects documents where values match a specified regular expression."
---
name: ":operator:`$where`"
file: /reference/operator/where
description: "Matches documents that satisfy a JavaScript expression."
...
14 changes: 14 additions & 0 deletions source/includes/toc-operator-landing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
file: /reference/operator-query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these files should be in the operator folder using nav- file names.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fancy! done.

description: |
Query operators provide ways to locate data within the database and
projection operators modify how data is presented.
---
file: /reference/operator-update
description: |
Update operators are operators that enable you to modify the data in
your database or add additional data.
---
file: /reference/operator-meta-query
description: |
Query modifiers determine the way that queries will be executed.
...
203 changes: 5 additions & 198 deletions source/reference/operator.txt
Original file line number Diff line number Diff line change
@@ -1,206 +1,13 @@
======================================
Query, Update and Projection Operators
======================================
=========
Operators
=========

.. default-domain:: mongodb

.. contents::
:backlinks: none
:local:

.. _query-selectors:

Query Selectors
---------------

Comparison
~~~~~~~~~~

.. only:: website

.. include:: /includes/table-operator-query-comparison.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-comparison

Logical
~~~~~~~

.. only:: website

.. include:: /includes/table-operator-query-logical.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-logical

Element
~~~~~~~

.. only:: website

.. include:: /includes/table-operator-query-element.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-element

JavaScript
~~~~~~~~~~

.. only:: website

.. include:: /includes/table-operator-query-javascript.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-javascript

Geospatial
~~~~~~~~~~

.. only:: website

.. include:: /includes/table-operator-query-geospatial.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-geospatial

Array
~~~~~

.. only:: website

.. include:: /includes/table-operator-query-array.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-array

.. _update-operators:

Update Operators
----------------

Fields
~~~~~~

.. only:: website

.. include:: /includes/table-operator-update-field.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/update-field

Array
~~~~~

.. only:: website

Operators
`````````

.. include:: /includes/table-operator-update-array.rst

Modifiers
`````````

.. include:: /includes/table-operator-update-array-modifiers.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/update-array

Bitwise
~~~~~~~

.. only:: website

.. include:: /includes/table-operator-update-bitwise.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/update-bitwise

Isolation
~~~~~~~~~

.. only:: website

.. include:: /includes/table-operator-update-isolation.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/update-isolation

Projection Operators
--------------------

.. only:: website

.. include:: /includes/table-operator-projection.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/projection


Meta-Query Operators
--------------------

.. only:: website

Query Modifiers
~~~~~~~~~~~~~~~

.. include:: /includes/table-operator-meta.rst

Sort Order Specifier
--------------------

.. include:: /includes/table-operator-sort-order.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-modifier

.. include:: /includes/dfn-list-operator-landing.rst

.. include:: /includes/toc-operator-landing.rst
28 changes: 28 additions & 0 deletions source/reference/operator/nav-meta-query.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
====================
Meta-Query Operators
====================

.. default-domain:: mongodb

.. contents::
:backlinks: none
:local:

.. only:: website

Query Modifiers
~~~~~~~~~~~~~~~

.. include:: /includes/table-operator-meta.rst

Sort Order Specifier
--------------------

.. include:: /includes/table-operator-sort-order.rst

.. class:: hidden

.. toctree::
:titlesonly:

/reference/operator/query-modifier
Loading