File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2050,3 +2050,29 @@ driver in production:
2050
2050
<https://devcenter.heroku.com/articles/request-timeout>`_ is 30 seconds and
2051
2051
is not configurable; if deploying a Ruby application using MongoDB to Heroku,
2052
2052
consider lowering server selection timeout to 20 or 15 seconds.
2053
+
2054
+ Feature Flags
2055
+ =============
2056
+
2057
+ The following is a list of feature flags that the Mongo Ruby Driver provides:
2058
+
2059
+ .. list-table::
2060
+ :header-rows: 1
2061
+ :widths: 30 60
2062
+
2063
+ * - Flag
2064
+ - Description
2065
+ * - ``validate_update_replace``
2066
+ - Validates that there are no atomic operators (those that start with $)
2067
+ in the root of a replacement document, and that there are only atomic
2068
+ operators at the root of an update document. If this feature flag is on,
2069
+ an error will be raised on an invalid update or replacement document,
2070
+ if not, a warning will be output to the logs. (default: false)
2071
+
2072
+ These feature flags can be set directly on the ``Mongo`` module or using
2073
+ the ``options`` method:
2074
+
2075
+ .. code::
2076
+
2077
+ Mongo.validate_update_replace = true
2078
+ Mongo.options = { validate_update_replace: true }
You can’t perform that action at this time.
0 commit comments