Skip to content

Commit 863ce5f

Browse files
authored
DOCSP-33881 mongdump $regex example (#114)
* DOCSP-33881 mongdump example * JM feedback * FH feedback
1 parent 9def490 commit 863ce5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/mongodump.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,12 @@ Options
706706

707707
mongodump -d=test -c=records -q='{ "a": { "$gte": 3 }, "date": { "$lt": { "$date": "2016-01-01T00:00:00.000Z" } } }'
708708

709+
To use :query:`$regex` with ``mongodump``, use the following syntax:
710+
711+
.. code-block:: sh
712+
713+
mongodump -d=sample_mflix -c=movies -q='{ "year": { "$regex": "20" } }'
714+
709715
.. note::
710716

711717
When you use the ``--query`` option on a :ref:`time series

0 commit comments

Comments
 (0)