version = 0
name = "CreateIndexes"
documentation = "CreateIndexes performs a createIndexes operation."

[command]
name = "createIndexes"
parameter = "collection"

[request.indexes]
type = "array"
constructor = true
documentation = "An array containing index specification documents for the indexes being created."

[request.maxTimeMS]
type = "int64"
documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run."

[response]
name = "CreateIndexesResult"

[response.field.createdCollectionAutomatically]
type = "boolean"
documentation = "If the collection was created automatically."

[response.field.indexesBefore]
type = "int32"
documentation = "The number of indexes existing before this command."

[response.field.indexesAfter]
type = "int32"
documentation = "The number of indexes existing after this command."
