@@ -52,9 +52,30 @@ The following options for writing to MongoDB are available:
52
52
| **Default:** None
53
53
54
54
* - ``convertJson``
55
- - | When ``true``, the connector parses the string and converts extended JSON
55
+ - | Specifies whether the connector parses the string and converts extended JSON
56
56
into BSON.
57
57
|
58
+ | This setting accepts the following values:
59
+
60
+ - ``any``: The connector converts all JSON values to BSON.
61
+
62
+ - ``"{a: 1}"`` becomes ``{a: 1}``.
63
+ - ``"[1, 2, 3]"`` becomes ``[1, 2, 3]``.
64
+ - ``"true"`` becomes ``true``.
65
+ - ``"01234"`` becomes ``1234``.
66
+ - ``"{a:b:c}"`` doesn't change.
67
+
68
+ - ``objectOrArrayOnly``: The connector converts only JSON objects and arrays to
69
+ BSON.
70
+
71
+ - ``"{a: 1}"`` becomes ``{a: 1}``.
72
+ - ``"[1, 2, 3]"`` becomes ``[1, 2, 3]``.
73
+ - ``"true"`` doesn't change.
74
+ - ``"01234"`` doesn't change.
75
+ - ``"{a:b:c}"`` doesn't change.
76
+
77
+ - ``false``: The connector leaves all values as strings.
78
+
58
79
| **Default:** ``false``
59
80
60
81
* - ``idFieldList``
@@ -93,12 +114,12 @@ The following options for writing to MongoDB are available:
93
114
- | Specifies the type of write operation to perform. You can set
94
115
this to one of the following values:
95
116
96
- - ``insert``: insert the data.
97
- - ``replace``: replace an existing document that matches the
117
+ - ``insert``: Insert the data.
118
+ - ``replace``: Replace an existing document that matches the
98
119
``idFieldList`` value with the new data. If no match exists, the
99
120
value of ``upsertDocument`` indicates whether the connector
100
121
inserts a new document.
101
- - ``update``: update an existing document that matches the
122
+ - ``update``: Update an existing document that matches the
102
123
``idFieldList`` value with the new data. If no match exists, the
103
124
value of ``upsertDocument`` indicates whether the connector
104
125
inserts a new document.
0 commit comments