forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiargs-dbcommand-insert-field.yaml
62 lines (61 loc) · 1.41 KB
/
apiargs-dbcommand-insert-field.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
arg_name: field
description: |
The name of the target collection.
interface: dbcommand
name: insert
operation: insert
optional: false
position: 1
type: string
---
arg_name: field
description: |
An array of one or more documents to insert into the named collection.
interface: dbcommand
name: documents
operation: insert
optional: false
position: 2
type: array
---
arg_name: field
description: |
If ``true``, then when an insert of a document fails, return without
inserting any remaining documents listed in the ``inserts`` array. If
``false``, then when an insert of a document fails, continue to insert the
remaining documents. Defaults to ``true``.
interface: dbcommand
name: ordered
operation: insert
optional: true
position: 3
type: boolean
---
arg_name: field
description: |
A document that expresses the :doc:`write concern </reference/write-concern>`
of the :dbcommand:`insert` command. Omit to use the default write
concern.
interface: dbcommand
name: writeConcern
operation: insert
optional: true
position: 4
type: document
---
arg_name: field
name: bypassDocumentValidation
ref: bypassDocumentValidation
description: |
Enables {{role}} to bypass document validation
during the operation. This lets you {{verb}} documents that do not
meet the validation requirements.
.. versionadded:: 3.2
interface: dbcommand
operation: insert
replacement:
verb: "insert"
optional: true
position: 5
type: boolean
...