@@ -1592,8 +1592,13 @@ def insert_many(self,
1592
1592
return_old = False ):
1593
1593
"""Insert multiple documents.
1594
1594
1595
- If inserting a document fails, the exception object is placed in the
1596
- result list instead of document metadata.
1595
+ .. note::
1596
+
1597
+ If inserting a document fails, the exception is not raised but
1598
+ returned as an object in the result list. It is up to you to
1599
+ inspect the list to determine which documents were inserted
1600
+ successfully (returns document metadata) and which were not
1601
+ (returns exception object).
1597
1602
1598
1603
:param documents: List of new documents to insert. If they contain the
1599
1604
"_key" or "_id" fields, the values are used as the keys of the new
@@ -1746,8 +1751,13 @@ def update_many(self,
1746
1751
silent = False ):
1747
1752
"""Update multiple documents.
1748
1753
1749
- If updating a document fails, the exception object is placed in the
1750
- result list instead of document metadata.
1754
+ .. note::
1755
+
1756
+ If updating a document fails, the exception is not raised but
1757
+ returned as an object in the result list. It is up to you to
1758
+ inspect the list to determine which documents were updated
1759
+ successfully (returns document metadata) and which were not
1760
+ (returns exception object).
1751
1761
1752
1762
:param documents: Partial or full documents with the updated values.
1753
1763
They must contain the "_id" or "_key" fields.
@@ -1953,8 +1963,13 @@ def replace_many(self,
1953
1963
silent = False ):
1954
1964
"""Replace multiple documents.
1955
1965
1956
- If replacing a document fails, the exception object is placed in the
1957
- result list instead of document metadata.
1966
+ .. note::
1967
+
1968
+ If replacing a document fails, the exception is not raised but
1969
+ returned as an object in the result list. It is up to you to
1970
+ inspect the list to determine which documents were replaced
1971
+ successfully (returns document metadata) and which were not
1972
+ (returns exception object).
1958
1973
1959
1974
:param documents: New documents to replace the old ones with. They must
1960
1975
contain the "_id" or "_key" fields. Edge documents must also have
@@ -2142,8 +2157,13 @@ def delete_many(self,
2142
2157
silent = False ):
2143
2158
"""Delete multiple documents.
2144
2159
2145
- If deleting a document fails, the exception object is placed in the
2146
- result list instead of document metadata.
2160
+ .. note::
2161
+
2162
+ If deleting a document fails, the exception is not raised but
2163
+ returned as an object in the result list. It is up to you to
2164
+ inspect the list to determine which documents were deleted
2165
+ successfully (returns document metadata) and which were not
2166
+ (returns exception object).
2147
2167
2148
2168
:param documents: Document IDs, keys or bodies. Document bodies must
2149
2169
contain the "_id" or "_key" fields.
0 commit comments