You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any other documents inserted alongside the errant document will still be inserted.
34
+
35
+
You can catch these errors with `try`/`catch` if necessary. If you do not manually specify the `_id` fields of inserted documents, these errors should never happen.
34
36
:::
35
37
36
38
## Return Data
37
39
38
-
An object is returned upon inserting one or many documents into the database, providing extra details about whether it succeeded:
40
+
When inserting one document, an array of length 1 is returned, containing a single object, providing extra details about whether the insert succeeded:
0 commit comments