class IndexOptions extends Object
Index Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- IndexOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
IndexOptions(w: UndefOr[|[Int, String]] = js.undefined, wtimeout: UndefOr[Int] = js.undefined, j: UndefOr[Boolean] = js.undefined, unique: UndefOr[Boolean] = js.undefined, sparse: UndefOr[Boolean] = js.undefined, background: UndefOr[Boolean] = js.undefined, dropDups: UndefOr[Boolean] = js.undefined, min: UndefOr[Int] = js.undefined, max: UndefOr[Int] = js.undefined, v: UndefOr[Int] = js.undefined, expireAfterSeconds: UndefOr[Int] = js.undefined, name: UndefOr[Int] = js.undefined, partialFilterExpression: UndefOr[Any] = js.undefined)
- w
The write concern (number | string; default: null).
- wtimeout
The write concern timeout (default: null).
- j
Specify a journal write concern (default: false).
- unique
Creates an unique index (default: false).
- sparse
Creates a sparse index (default: false).
- background
Creates the index in the background, yielding whenever possible (default: false).
- dropDups
A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway keeping the first document the database indexes and deleting all subsequent documents that have duplicate value (default: false).
- min
For geospatial indexes set the lower bound for the co-ordinates (default: null).
- max
For geospatial indexes set the high bound for the co-ordinates (default: null).
- v
Specify the format version of the indexes (default: null).
- expireAfterSeconds
Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) (default: null).
- name
Override the auto-generated index name (useful if the resulting name is larger than 128 bytes) (default: null)
- partialFilterExpression
Creates a partial index based on the given filter object (MongoDB 3.2 or higher)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val background: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val dropDups: UndefOr[Boolean]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val expireAfterSeconds: UndefOr[Int]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val j: UndefOr[Boolean]
- val max: UndefOr[Int]
- val min: UndefOr[Int]
- val name: UndefOr[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val partialFilterExpression: UndefOr[Any]
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val sparse: UndefOr[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val unique: UndefOr[Boolean]
- val v: UndefOr[Int]
-
def
valueOf(): Any
- Definition Classes
- Object
- val w: UndefOr[|[Int, String]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val wtimeout: UndefOr[Int]