class CollectionOptions extends Object
Mongo Collection Retrieval Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- CollectionOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CollectionOptions(w: UndefOr[String] = js.undefined, wtimeout: UndefOr[Boolean] = js.undefined, j: UndefOr[Boolean] = js.undefined, raw: UndefOr[Boolean] = js.undefined, pkFactory: UndefOr[Boolean] = js.undefined, readPreference: UndefOr[Boolean] = js.undefined, serializeFunctions: UndefOr[Boolean] = js.undefined, strict: UndefOr[Boolean] = js.undefined, capped: UndefOr[Boolean] = js.undefined, autoIndexId: UndefOr[String] = js.undefined, size: UndefOr[Boolean] = js.undefined, max: UndefOr[Boolean] = js.undefined, flags: UndefOr[Boolean] = js.undefined, storageEngine: UndefOr[Boolean] = js.undefined, validator: UndefOr[Boolean] = js.undefined, validationLevel: UndefOr[Boolean] = js.undefined, validationAction: UndefOr[Boolean] = js.undefined, indexOptionDefaults: UndefOr[Boolean] = js.undefined, viewOn: UndefOr[Boolean] = js.undefined, pipeline: UndefOr[Boolean] = js.undefined, collation: UndefOr[Boolean] = js.undefined)
- w
number | string null optional - The write concern.
- wtimeout
number null optional - The write concern timeout.
- j
boolean false optional - Specify a journal write concern.
- raw
boolean false optional - Return document results as raw BSON buffers.
- pkFactory
object null optional - A primary key factory object for generation of custom _id keys.
- readPreference
ReadPreference | string null optional - The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
- serializeFunctions
boolean false optional - Serialize functions on any object.
- strict
boolean false optional - Returns an error if the collection does not exist
- capped
boolean false optional - Create a capped collection.
- autoIndexId
boolean true optional - Create an index on the _id field of the document, True by default on MongoDB 2.2 or higher off for version < 2.2.
- size
number null optional - The size of the capped collection in bytes.
- max
number null optional - The maximum number of documents in the capped collection.
- flags
number null optional - Optional. Available for the MMAPv1 storage engine only to set the usePowerOf2Sizes and the noPadding flag.
- storageEngine
object null optional - Allows users to specify configuration to the storage engine on a per-collection basis when creating a collection on MongoDB 3.0 or higher.
- validator
object null optional - Allows users to specify validation rules or expressions for the collection. For more information, see Document Validation on MongoDB 3.2 or higher.
- validationLevel
string null optional - Determines how strictly MongoDB applies the validation rules to existing documents during an update on MongoDB 3.2 or higher.
- validationAction
string null optional - Determines whether to error on invalid documents or just warn about the violations but allow invalid documents to be inserted on MongoDB 3.2 or higher.
- indexOptionDefaults
object null optional - Allows users to specify a default configuration for indexes when creating a collection on MongoDB 3.2 or higher.
- viewOn
string null optional - The name of the source collection or view from which to create the view. The name is not the full namespace of the collection or view; i.e. does not include the database name and implies the same database as the view to create on MongoDB 3.4 or higher.
- pipeline
array null optional - An array that consists of the aggregation pipeline stage. create creates the view by applying the specified pipeline to the viewOn collection or view on MongoDB 3.4 or higher.
- collation
object null optional - Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
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 autoIndexId: UndefOr[String]
- val capped: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val collation: UndefOr[Boolean]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val flags: UndefOr[Boolean]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- val indexOptionDefaults: UndefOr[Boolean]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val j: UndefOr[Boolean]
- val max: UndefOr[Boolean]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val pipeline: UndefOr[Boolean]
- val pkFactory: UndefOr[Boolean]
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val raw: UndefOr[Boolean]
- val readPreference: UndefOr[Boolean]
- val serializeFunctions: UndefOr[Boolean]
- val size: UndefOr[Boolean]
- val storageEngine: UndefOr[Boolean]
- val strict: 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 validationAction: UndefOr[Boolean]
- val validationLevel: UndefOr[Boolean]
- val validator: UndefOr[Boolean]
-
def
valueOf(): Any
- Definition Classes
- Object
- val viewOn: UndefOr[Boolean]
- val w: UndefOr[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[Boolean]