@@ -55,7 +55,6 @@ Versioning
5555.. note:: Quick links to older documentation
5656
5757 - :v4.2:`MongoDB 4.2 mongoimport </reference/program/mongoimport>`
58- - :v4.0:`MongoDB 4.0 mongoimport </reference/program/mongoimport>`
5958
6059This documentation is for version ``{+release+}`` of |tool-binary|.
6160
@@ -83,7 +82,7 @@ Installation
8382Syntax
8483------
8584
86- The :binary:`~bin.mongoimport` command has the following form :
85+ The :binary:`~bin.mongoimport` command has the following syntax :
8786
8887.. code-block:: sh
8988
@@ -121,7 +120,7 @@ Encoding
121120~~~~~~~~
122121
123122:binary:`~bin.mongoimport` only supports data files that are UTF-8 encoded.
124- Using other encodings will produce errors.
123+ Using other encodings produces errors.
125124
126125FIPS
127126~~~~
@@ -312,12 +311,11 @@ Options
312311
313312 Specifies the password to de-crypt the certificate-key file (i.e.
314313 :option:`--sslPEMKeyFile`). Use the :option:`--sslPEMKeyPassword` option only if the
315- certificate-key file is encrypted. In all cases, the :program:`mongoimport` will
316- redact the password from all logging and reporting output.
314+ certificate-key file is encrypted. In all cases, the :program:`mongoimport` redacts the password from all logging and reporting output.
317315
318316 If the private key in the PEM file is encrypted and you do not specify
319- the :option:`--sslPEMKeyPassword` option, the :program:`mongoimport` will prompt for a passphrase. See
320- :ref:`ssl-certificate-password`.
317+ the :option:`--sslPEMKeyPassword` option, the :program:`mongoimport`
318+ prompts for a passphrase. See :ref:`ssl-certificate-password`.
321319
322320 .. include:: /includes/extracts/uri-used-with-sslpemkeypassword.rst
323321
@@ -340,8 +338,8 @@ Options
340338
341339 Bypasses the validation checks for server certificates and allows
342340 the use of invalid certificates. When using the
343- :setting:`~net.ssl.allowInvalidCertificates` setting, MongoDB logs as a
344- warning the use of the invalid certificate .
341+ :setting:`~net.ssl.allowInvalidCertificates` setting, MongoDB logs a
342+ warning for invalid certificates .
345343
346344 .. include:: /includes/extracts/ssl-facts-invalid-cert-warning-clients.rst
347345
@@ -453,7 +451,7 @@ Options
453451.. option:: --collection=<collection>, -c=<collection>
454452
455453 Specifies the collection to import. If you do not specify
456- :option:`--collection`, :binary:`~bin.mongoimport` takes the
454+ :option:`--collection`, :binary:`~bin.mongoimport` reads the
457455 collection name from the input filename, omitting the file's
458456 extension if it has one.
459457
@@ -468,7 +466,7 @@ Options
468466 :option:`--fields` with :option:`--columnsHaveTypes`.
469467
470468 If you attempt to include :option:`--fields` when importing JSON data,
471- :program:`mongoimport` will return an error. :option:`--fields` is only for :term:`CSV`
469+ :program:`mongoimport` returns an error. :option:`--fields` is only for :term:`CSV`
472470 or :term:`TSV` imports.
473471
474472
@@ -483,7 +481,7 @@ Options
483481 :option:`--fieldFile` with :option:`--columnsHaveTypes`.
484482
485483 If you attempt to include :option:`--fieldFile` when importing JSON data,
486- :program:`mongoimport` will return an error. :option:`--fieldFile` is only for :term:`CSV`
484+ :program:`mongoimport` returns an error. :option:`--fieldFile` is only for :term:`CSV`
487485 or :term:`TSV` imports.
488486
489487
@@ -495,7 +493,7 @@ Options
495493
496494
497495 If you attempt to include :option:`--ignoreBlanks` when importing JSON data,
498- :program:`mongoimport` will return an error. :option:`--ignoreBlanks` is only for :term:`CSV`
496+ :program:`mongoimport` returns an error. :option:`--ignoreBlanks` is only for :term:`CSV`
499497 or :term:`TSV` imports.
500498
501499
@@ -531,12 +529,12 @@ Options
531529
532530 If using :option:`--type csv <mongoimport --type>` or :option:`--type
533531 tsv <mongoimport --type>`, uses the first line as field names.
534- Otherwise, :binary:`~bin.mongoimport` will import the first line as a
532+ Otherwise, :binary:`~bin.mongoimport` imports the first line as a
535533 distinct document.
536534
537535
538536 If you attempt to include :option:`--headerline` when importing JSON data,
539- :program:`mongoimport` will return an error. :option:`--headerline` is only for :term:`CSV`
537+ :program:`mongoimport` returns an error. :option:`--headerline` is only for :term:`CSV`
540538 or :term:`TSV` imports.
541539
542540
@@ -577,7 +575,7 @@ Options
577575 is interpreted as a document key, and not an array index.
578576
579577 If using the :option:`--ignoreBlanks` option with
580- :option:`--useArrayIndexFields`, :program:`mongoimport` will log an
578+ :option:`--useArrayIndexFields`, :program:`mongoimport` returns an
581579 error if you attempt to import a document that contains a
582580 blank value (e.g. ``""``) for an array index field.
583581
@@ -608,23 +606,23 @@ Options
608606
609607 * - ``insert``
610608
611- - Insert the documents in the import file. :program:`mongoimport` will log
612- an error if you attempt to import a document that contains a
613- duplicate value for a field with a :ref:`unique index
614- <index-type-unique>`, such as ``_id``.
609+ - Insert the documents in the import file.
610+ :program:`mongoimport` returns an error if you attempt to
611+ import a document that contains a duplicate value for a field
612+ with a :ref:`unique index <index-type-unique>`, such as ``_id``.
615613
616614 * - ``upsert``
617615
618616 - Replace existing documents in the database with matching
619617 documents from the
620- import file. :program:`mongoimport` will insert all other
618+ import file. :program:`mongoimport` inserts all other
621619 documents. :ref:`ex-mongoimport-upsert` describes how to
622620 use :option:`--mode` ``upsert``.
623621
624622 * - ``merge``
625623
626624 - Merge existing documents that match a document in the import file with
627- the new document. :program:`mongoimport` will insert all other documents.
625+ the new document. :program:`mongoimport` inserts all other documents.
628626 :ref:`ex-mongoimport-merge` describes how to use :option:`--mode`
629627 ``merge``.
630628
@@ -650,7 +648,7 @@ Options
650648 another field or field combination can uniquely identify
651649 documents as a basis for performing upsert operations.
652650
653- If you do not specify a field, :option:`--upsertFields` will upsert
651+ If you do not specify a field, :option:`--upsertFields` upserts
654652 on the basis of the ``_id`` field.
655653
656654 To ensure adequate performance, indexes should exist for the
@@ -842,7 +840,7 @@ Options
842840 See :ref:`example-csv-import-types` for sample usage.
843841
844842 If you attempt to include :option:`--columnsHaveTypes` when importing JSON data,
845- :program:`mongoimport` will return an error. :option:`--columnsHaveTypes` is only for :term:`CSV`
843+ :program:`mongoimport` returns an error. :option:`--columnsHaveTypes` is only for :term:`CSV`
846844 or :term:`TSV` imports.
847845
848846
@@ -1041,7 +1039,7 @@ the fields to match against.
10411039.. note::
10421040
10431041 With :option:`--mode <mongoimport --mode>` ``delete``,
1044- :binary:`~bin.mongoimport` will only delete one existing document per
1042+ :binary:`~bin.mongoimport` only deletes one existing document per
10451043 match. Ensure that documents from the import file match a single
10461044 existing document from the database.
10471045
@@ -1147,7 +1145,7 @@ either: :option:`--fields <mongoimport --fields>`, :option:`--fieldFile
11471145Specify field names and data types in the form
11481146``<colName>.<type>(<arg>)``.
11491147
1150- For example, a ``/example/file.csv`` file contains the following data:
1148+ For example, ``/example/file.csv`` contains the following data:
11511149
11521150.. code-block:: none
11531151
@@ -1258,9 +1256,8 @@ shell:
12581256 export AWS_SECRET_ACCESS_KEY='<aws secret access key>'
12591257 export AWS_SESSION_TOKEN='<aws session token>'
12601258
1261- Syntax for setting environment variables in other shells will be
1262- different. Consult the documentation for your platform for more
1263- information.
1259+ Other shells use different syntax to set environment variables. Consult
1260+ the documentation for your platform for more information.
12641261
12651262You can verify that these environment variables have been set with the
12661263following command:
0 commit comments