File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ The following options for writing to MongoDB are available:
72
72
73
73
- ``insert``: insert the data.
74
74
- ``replace``: replace an existing document that matches the
75
- ``idFieldList`` value with the new data, or insert the data if
76
- no match exists.
75
+ ``idFieldList`` value with the new data. If no match exists, the
76
+ value of ``upsertDocument`` indicates whether or not the connector
77
+ inserts a new document.
77
78
- ``update``: update an existing document that matches the
78
- ``idFieldList`` value with the new data, or inserts the data if
79
- no match exists.
79
+ ``idFieldList`` value with the new data. If no match exists, the
80
+ value of ``upsertDocument`` indicates whether or not the connector
81
+ inserts a new document.
80
82
81
83
|
82
84
| **Default:** ``replace``
@@ -130,6 +132,15 @@ The following options for writing to MongoDB are available:
130
132
guide on the
131
133
:manual:`WriteConcern wtimeout option </reference/write-concern/#wtimeout>`.
132
134
135
+ * - ``upsertDocument``
136
+ - | When ``true``, replace and update operations will insert the data
137
+ if no match exists.
138
+ |
139
+ | For time series collections, you must set ``upsertDocument`` to
140
+ ``false``.
141
+ |
142
+ | **Default:** ``true``
143
+
133
144
.. _configure-output-uri:
134
145
135
146
``connection.uri`` Configuration Setting
You can’t perform that action at this time.
0 commit comments