Skip to content

Commit

Permalink
DOCS-12989: add = to the options for mongodb command line tools (mong…
Browse files Browse the repository at this point in the history
…oexport)
  • Loading branch information
kay-kim committed Oct 2, 2019
1 parent 1dd2847 commit 9a08195
Show file tree
Hide file tree
Showing 3 changed files with 585 additions and 66 deletions.
4 changes: 2 additions & 2 deletions source/includes/extracts-4.2-changes.yaml
Expand Up @@ -682,15 +682,15 @@ content: |
.. code-block:: sh
mongoexport -d test -c records -q '{ "a": { "$gte": 3 }, "date": { "$lt": { "$date": "2016-01-01T00:00:00.000Z" } } }' --out exportdir/myRecords.json
mongoexport -d=test -c=records -q='{ "a": { "$gte": 3 }, "date": { "$lt": { "$date": "2016-01-01T00:00:00.000Z" } } }' --out=exportdir/myRecords.json
In earlier versions, the query options uses the :doc:`Extended JSON v1
format </reference/mongodb-extended-json-v1>` and the field names and
the operators do not need to be in quotes:
.. code-block:: sh
mongoexport -d test -c records -q '{ a: { $gte: 3 }, date: { $lt: { "$date": "2016-01-01T00:00:00.000Z" } } }' --out exportdir/myRecords.json
mongoexport -d=test -c=records -q='{ a: { $gte: 3 }, date: { $lt: { "$date": "2016-01-01T00:00:00.000Z" } } }' --out=exportdir/myRecords.json
---
ref: 4.2-changes-mongoshell-emulation
Expand Down
4 changes: 2 additions & 2 deletions source/includes/fact-type-fidelity-loss-example.rst
Expand Up @@ -15,7 +15,7 @@ Use :binary:`~bin.mongoexport` to export the data:

.. code-block:: none
mongoexport --db test --collection traffic --out traffic.json
mongoexport --db=test --collection=traffic --out=traffic.json
In version 4.2+, the exported data is in :doc:`Extended JSON v2.0
(Relaxed mode)</reference/mongodb-extended-json>`.
Expand All @@ -30,7 +30,7 @@ mode)</reference/mongodb-extended-json>`, include the

.. code-block:: none
mongoexport --db test --collection traffic --jsonFormat=canonical --out traffic.json
mongoexport --db=test --collection=traffic --jsonFormat=canonical --out=traffic.json
The exported data is in :doc:`Extended JSON v2.0 (Canonical
mode)</reference/mongodb-extended-json>`:
Expand Down

0 comments on commit 9a08195

Please sign in to comment.