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[request.commitQuorum]
22type = "value"
23minWireVersionRequired = 9
24documentation = """
25The number of data-bearing members of a replica set, including the primary, that must complete the index builds
26successfully before the primary marks the indexes as ready. This should either be a string or int32 value.
27"""
28
29[response]
30name = "CreateIndexesResult"
31
32[response.field.createdCollectionAutomatically]
33type = "boolean"
34documentation = "If the collection was created automatically."
35
36[response.field.indexesBefore]
37type = "int32"
38documentation = "The number of indexes existing before this command."
39
40[response.field.indexesAfter]
41type = "int32"
42documentation = "The number of indexes existing after this command."
43