1version = 0
2name = "CreateIndexes"
3documentation = "CreateIndexes performs a createIndexes operation."
4
5[properties]
6enabled = ["write concern"]
7
8[command]
9name = "createIndexes"
10parameter = "collection"
11
12[request.indexes]
13type = "array"
14constructor = true
15documentation = "An array containing index specification documents for the indexes being created."
16
17[request.maxTimeMS]
18type = "int64"
19documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run."
20
21[response]
22name = "CreateIndexesResult"
23
24[response.field.createdCollectionAutomatically]
25type = "boolean"
26documentation = "If the collection was created automatically."
27
28[response.field.indexesBefore]
29type = "int32"
30documentation = "The number of indexes existing before this command."
31
32[response.field.indexesAfter]
33type = "int32"
34documentation = "The number of indexes existing after this command."
35