Skip to content

Commit a14bbc3

Browse files
npentreljeff-allen-mongo
authored andcommitted
DOCS-14641: Dump timeseries collections
1 parent 7a6c74f commit a14bbc3

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

source/mongodump.txt

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -689,26 +689,36 @@ Options
689689
the documents included in the output of :binary:`~bin.mongodump`. To
690690
use the ``--query`` option, you must also specify the
691691
:option:`--collection <mongodump --collection>` option.
692-
692+
693693
.. include:: /includes/fact-quote-command-line-query.rst
694-
694+
695695
The query :red:`must` be in :manual:`Extended JSON v2 format
696696
(either relaxed or canonical/strict mode)
697697
</reference/mongodb-extended-json>`, including enclosing the field
698698
names and operators in quotes. For example:
699-
699+
700700
.. code-block:: sh
701-
701+
702702
mongodump -d=test -c=records -q='{ "a": { "$gte": 3 }, "date": { "$lt": { "$date": "2016-01-01T00:00:00.000Z" } } }'
703-
703+
704+
.. note::
705+
706+
When you use the ``--query`` option on a :ref:`time series
707+
collection <manual-timeseries-collection>`, you can only query the
708+
field specified as the ``metaField``.
704709

705710
.. option:: --queryFile=<path>
706-
711+
707712
Specifies the path to a file containing a JSON document as a query
708713
filter that limits the documents included in the output of
709-
:binary:`~bin.mongodump`. :option:`--queryFile` enables you to create query filters that
710-
are too large to fit in your terminal's buffer.
714+
:binary:`~bin.mongodump`. :option:`--queryFile` enables you to create
715+
query filters that are too large to fit in your terminal's buffer.
716+
717+
.. note::
711718

719+
When you use the ``--queryFile`` option on a :ref:`time series
720+
collection <manual-timeseries-collection>`, you can only query the
721+
field specified as the ``metaField``.
712722

713723
.. option:: --readPreference=<string|document>
714724

0 commit comments

Comments
 (0)