IndexOptions.background

Specifying true directs MongoDB to build the index in the background. Background builds do not block operations on the collection. Since MongoDB 4.2 indices are built on the background by default. In MongoDB 4.0 and before, this defaults to false.

struct IndexOptions
@embedNullable
@until(WireVersion.v42)
Nullable!bool background;

Meta