package mongodb
MongoDB package object
- Alphabetic
- By Inheritance
- mongodb
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Admin
extends Object
Mongo Administrative Functions
Mongo Administrative Functions
- Annotations
- @RawJSType() @native()
-
trait
AggregationCursor
[T] extends Object with Readable
Aggregation Cursor
Aggregation Cursor
- Annotations
- @RawJSType() @native()
-
class
AggregationCursorOptions
extends Object
Aggregation Cursor Options
Aggregation Cursor Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
AggregationOptions
extends Object
Aggregation Options
Aggregation Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
BulkWriteOpResultObject
extends Object
Bulk Write Operation Result Object
Bulk Write Operation Result Object
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
BulkWriteResult
extends Object
Bulk Write Result
Bulk Write Result
- Annotations
- @RawJSType() @native() @JSName( "BulkWriteResult" )
-
class
Chunk
extends Object
Chunk
Chunk
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Chunk" )
-
class
Code
extends Object
A class representation of the BSON Code type.
A class representation of the BSON Code type.
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Code" )
-
trait
Collection
extends Object
Mongo Collection
Mongo Collection
- Annotations
- @RawJSType() @native()
- See also
http://mongodb.github.io/node-mongodb-native/2.1/api/index.html
-
class
CollectionInfo
extends Object
{"name":"listing_activity", "type":"collection", "options":{}, "info":{"readOnly":false}, "idIndex":{"v":2,"key":{"_id":1},"name":"_id_","ns":"mi.listing_activity"}}
{"name":"listing_activity", "type":"collection", "options":{}, "info":{"readOnly":false}, "idIndex":{"v":2,"key":{"_id":1},"name":"_id_","ns":"mi.listing_activity"}}
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
CollectionInfo_IdIndex
extends Object
CollectionInfo IdIndex
CollectionInfo IdIndex
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
CollectionInfo_Info
extends Object
CollectionInfo Info
CollectionInfo Info
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
CollectionOptions
extends Object
Mongo Collection Retrieval Options
Mongo Collection Retrieval Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
CollectionStats
extends Object with Okayable
Collection Statistics
Collection Statistics
- Annotations
- @RawJSType() @native()
-
trait
CommandCursor
[T] extends Object with Readable
Creates a new Command Cursor instance (INTERNAL TYPE, do not instantiate directly)
Creates a new Command Cursor instance (INTERNAL TYPE, do not instantiate directly)
- Annotations
- @RawJSType() @native()
- See also
http://mongodb.github.io/node-mongodb-native/2.2/api/CommandCursor.html
-
trait
CommandResult
extends Object
Command Result
Command Result
- Annotations
- @RawJSType() @native()
-
class
Connection
extends Object
MongoDB Connection
MongoDB Connection
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Connection" )
-
class
ConnectionOptions
extends Object
Mongo Client Connection Options
Mongo Client Connection Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- See also
https://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html#connect
-
class
CountOptions
extends Object
Count Options
Count Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
Cursor
[T] extends Object with Readable
Cursor
Cursor
- Annotations
- @RawJSType() @native()
- See also
https://mongodb.github.io/node-mongodb-native/api-generated/cursor.html
-
implicit final
class
CursorEvents
[A] extends AnyVal
Cursor Extensions
- type CursorFlag = String
-
class
CursorOptions
extends Object
Cursor Options
Cursor Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
CursorStreamOptions
extends Object
Cursor Stream Options
Cursor Stream Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
implicit final
class
DSLExtensions
extends AnyVal
Mongo DSL Extensions
-
class
Db
extends Object
Mongo Database
Mongo Database
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Db" )
- See also
https://mongodb.github.io/node-mongodb-native/api-articles/nodekoarticle1.html
-
class
DbOptions
extends Object
Database Options
Database Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
DbSharingOptions
extends Object
Database Clone Options
Database Clone Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
DbStats
extends Object
Database Statistics
Database Statistics
- Annotations
- @RawJSType() @native()
-
class
DbStatsOptions
extends Object
Database Statistics Options
Database Statistics Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
DeleteOptions
extends Object
Delete Options
Delete Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
DeleteWriteOpResult
extends Object
Delete Write Operation Result
Delete Write Operation Result
- Annotations
- @RawJSType() @native()
-
trait
FindAndModifyWriteOpResult
extends Object with Okayable
Find And Modify Write Operation Result
Find And Modify Write Operation Result
- Annotations
- @RawJSType() @native()
-
class
FindAndUpdateOptions
extends Object
Find-And-Update Options
Find-And-Update Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
IndexInformationOptions
extends Object
Index Information Options
Index Information Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
IndexOptions
extends Object
Index Options
Index Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
InsertWriteOpResult
extends Object
Insert Write Operation Result
Insert Write Operation Result
- Annotations
- @RawJSType() @native()
-
class
ListCollectionsOptions
extends Object
List Collections Options
List Collections Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- type MongoCallback0 = Function1[MongoError, Any]
- type MongoCallback1[A] = Function2[MongoError, A, Any]
- type MongoCallback2[A, B] = Function3[MongoError, A, B, Any]
- type MongoCallback3[A, B, C] = Function4[MongoError, A, B, C, Any]
-
class
MongoClient
extends Object
Mongo Client Module
Mongo Client Module
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "MongoClient" )
- See also
-
trait
MongoClientClass
extends Object
Mongo Client Class
Mongo Client Class
- Annotations
- @RawJSType() @native()
-
class
MongoClientOptions
extends Object
MongoDB Client Options
MongoDB Client Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- See also
https://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html#connect
-
class
MongoDB
extends Object with IEventEmitter
MongoDB Module for Node.js
MongoDB Module for Node.js
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , JSImport.Namespace )
- Version
2.2
- See also
http://mongodb.github.io/node-mongodb-native/2.2/api/
- type MongoDoc = Dictionary[Any]
- type MongoDocEntry = (String, MongoDoc)
-
class
MongoError
extends Object
Mongo Error
Mongo Error
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "MongoError" )
- See also
http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html
-
class
ObjectID
extends Object
MongoDB ObjectID
MongoDB ObjectID
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "ObjectID" )
-
trait
Okayable
extends Object
Okay Verification
Okay Verification
- Annotations
- @RawJSType() @native()
-
trait
OperationResult
extends Object
Operation Result
Operation Result
- Annotations
- @RawJSType() @native()
-
trait
ProfilingInfo
extends Object
Profiling Information
Profiling Information
- Annotations
- @RawJSType() @native()
-
implicit final
class
ProjectionEnrichment
extends AnyVal
Mongo Projection Enrichment
-
class
ReadPreference
extends Object
Read Preference
Read Preference
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "ReadPreference" )
- type ReadPreferenceMode = String
-
class
ReadPreferenceOptions
extends Object
Read Preference Options
Read Preference Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
RemoveUserOptions
extends Object
Remove User Options.
Remove User Options.
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
RenameOptions
extends Object
Rename Options
Rename Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
ReplSet
extends Object
MongoDB Replica Set Servers
MongoDB Replica Set Servers
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "ReplSet" )
-
class
ReplacementOptions
extends Object
Replacement Options
Replacement Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
Server
extends Object
MongoDB Server
MongoDB Server
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Server" )
-
class
TextSearchOptions
extends Object
Text Search Options
Text Search Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
UnorderedBulkOperation
extends Object
Unordered Bulk Operation
Unordered Bulk Operation
- Annotations
- @RawJSType() @native() @JSName( "UnorderedBulkOperation" )
-
class
UpdateOptions
extends Object
Document Update Options
Document Update Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
UpdateWriteOpResultObject
extends Object
Update Write Operation Result Object
Update Write Operation Result Object
- Annotations
- @RawJSType() @native()
-
trait
UpdateWriteResult
extends Object with Okayable
Update Write Result
Update Write Result
- Annotations
- @RawJSType() @native()
-
trait
ValidationResult
extends Object
Validation Result
Validation Result
- Annotations
- @RawJSType() @native()
-
trait
WriteConcernError
extends Object
Write Concern Error
Write Concern Error
- Annotations
- @RawJSType() @native()
-
trait
WriteError
extends Object
Write Error
Write Error
- Annotations
- @RawJSType() @native()
-
class
WriteOptions
extends Object
Write Options
Write Options
- Annotations
- @RawJSType() @ScalaJSDefined()
Value Members
-
def
$addToSet(values: (String, Any)*): (String, Dictionary[Any])
- Annotations
- @inline()
-
def
$and(array: ⇒ Array[Any]): (String, Array[Any])
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
- Annotations
- @inline()
db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )
Example: -
def
$and(values: (String, Any)*): (String, Array[Dictionary[Any]])
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
- Annotations
- @inline()
db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )
Example: -
def
$each(values: Array[_]): (String, Array[_$1]) forSome {type _$1}
Modifies the $push and $addToSet operators to append multiple items for array updates.
Modifies the $push and $addToSet operators to append multiple items for array updates.
- Annotations
- @inline()
$each: [ 90, 92, 85 ]
Example: -
def
$elemMatch(value: ⇒ Any): (String, Any)
Projects the first element in an array that matches the specified $elemMatch condition.
Projects the first element in an array that matches the specified $elemMatch condition.
- Annotations
- @inline()
{ students: { $elemMatch: { school: 102 } } }
Example: -
def
$group(values: (String, Any)*): Dictionary[Any]
- Annotations
- @inline()
-
def
$group(document: ⇒ Any): Dictionary[Any]
- Annotations
- @inline()
-
def
$inc(deltas: (String, Double)*): (String, Dictionary[Double])
- Annotations
- @inline()
{ $inc: { <field1>: <amount1>, <field2>: <amount2>, ... } }
Example: -
def
$match(values: (String, Any)*): Dictionary[Any]
- Annotations
- @inline()
-
def
$match(document: ⇒ Any): Dictionary[Any]
- Annotations
- @inline()
-
def
$nor(array: ⇒ Array[Any]): (String, Array[Any])
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
- Annotations
- @inline()
db.inventory.find( { $nor: [ { price: 1.99 }, { sale: true } ] } )
Example: -
def
$nor(values: (String, Any)*): (String, Array[Dictionary[Any]])
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
- Annotations
- @inline()
db.inventory.find( { $nor: [ { price: 1.99 }, { sale: true } ] } )
Example: -
def
$or(array: ⇒ Array[Any]): (String, Array[Any])
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
- Annotations
- @inline()
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Example: -
def
$or(values: (String, Any)*): (String, Array[Dictionary[Any]])
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
- Annotations
- @inline()
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Example: -
def
$position(pos: ⇒ Int): (String, Int)
Modifies the $push operator to specify the position in the array to add elements.
Modifies the $push operator to specify the position in the array to add elements.
- Annotations
- @inline()
$position: 1
Example: -
def
$pull(value: (String, Any)*): (String, Dictionary[Any])
- Annotations
- @inline()
-
def
$pull(value: ⇒ Any): (String, Any)
- Annotations
- @inline()
-
def
$set(value: (String, Any)*): (String, Dictionary[Any])
The $set operator replaces the value of a field with the specified value.
The $set operator replaces the value of a field with the specified value.
- Annotations
- @inline()
{ $set: { field1: value1, ... } }
Example: -
def
$set(value: ⇒ Any): (String, Any)
The $set operator replaces the value of a field with the specified value.
The $set operator replaces the value of a field with the specified value.
- Annotations
- @inline()
{ $set: { field1: value1, ... } }
Example: -
def
$setOnInsert(value: (String, Any)*): (String, Dictionary[Any])
The $setOnInsert operator is used to set values to fields during an upsert only, the update() operation performs an insert when using the upsert option with the update().
The $setOnInsert operator is used to set values to fields during an upsert only, the update() operation performs an insert when using the upsert option with the update().
- Annotations
- @inline()
{ $$setOnInsert: { field1: value1, ... } }
Example: -
def
$setOnInsert(value: ⇒ Any): (String, Any)
The $setOnInsert operator is used to set values to fields during an upsert only, the update() operation performs an insert when using the upsert option with the update().
The $setOnInsert operator is used to set values to fields during an upsert only, the update() operation performs an insert when using the upsert option with the update().
- Annotations
- @inline()
{ $setOnInsert: { field1: value1, ... } }
Example: -
def
$text(options: ⇒ TextSearchOptions): (String, TextSearchOptions)
Performs text search.
Performs text search.
- Annotations
- @inline()
db.articles.find( { $text: { $search: "coffee" } } )
- See also
https://docs.mongodb.org/manual/reference/operator/query/text/#op._S_text
Example: -
def
$where(code: ⇒ String): (String, String)
Matches documents that satisfy a JavaScript expression.
Matches documents that satisfy a JavaScript expression.
- Annotations
- @inline()
db.myCollection.find( { $where: "this.credits == this.debits" } )
Example: - val AWAITDATA: CursorFlag
- val NOCURSORTIMEOUT: CursorFlag
- val OPLOGREPLAY: CursorFlag
- val PARTIAL: CursorFlag
- val TAILABLE: CursorFlag
-
def
deleteMany(filter: Any): MongoDoc
- Annotations
- @inline()
-
def
deleteOne(filter: Any): MongoDoc
- Annotations
- @inline()
-
def
doc(kvps: (String, Any)*): Dictionary[Any]
Creates a new JSON document
Creates a new JSON document
- kvps
the given key-value pairs
- returns
a new document
- Annotations
- @inline()
-
def
insertOne(document: Any): MongoDoc
- Annotations
- @inline()
-
def
promiseMongoCallback1[R](f: (Function2[MongoError, R, Any]) ⇒ Unit): Promise[R]
Converts a JavaScript-style callback to a Scala-style future
Converts a JavaScript-style callback to a Scala-style future
- f
the given callback function
- returns
a Scala-style future
- Annotations
- @inline()
-
def
replaceOne(filter: Any, replacement: Any, upsert: Boolean = false): MongoDoc
- Annotations
- @inline()
-
implicit
def
tupleToJS[A](values: (String, A)): Any
Implicit conversion tuple sequence to js.Dictionary
-
def
updateMany(filter: Any, update: Any, upsert: Boolean = false): MongoDoc
- Annotations
- @inline()
-
def
updateOne(filter: Any, update: Any, upsert: Boolean = false): MongoDoc
- Annotations
- @inline()
-
object
Admin
Mongo Administrative Companion
-
object
BulkWriteOpResultObject
Bulk Write Operation Result Object Companion
-
object
Chunk
extends Object
- Annotations
- @native() @JSImport( "mongodb" , "Chunk" )
-
object
Collection
Mongo Collection Companion
-
object
CommandCursor
Command Cursor Singleton
-
object
Cursor
extends Object
Cursor Companion
Cursor Companion
- Annotations
- @native() @JSImport( "mongodb" , "Cursor" )
-
object
DeleteWriteOpResult
Delete Write Operation Result Companion
-
object
FindAndModifyWriteOpResult
Find And Modify Write Operation Result Companion
-
object
InsertWriteOpResult
Insert Write Operation Result Companion
-
object
MongoClient
extends Object with MongoClientClass
Mongo Client Companion
Mongo Client Companion
- Annotations
- @native() @JSImport( "mongodb" , "MongoClient" )
-
object
MongoClientClass
Mongo Client Class Companion
-
object
MongoError
extends Object
Mongo Error Singleton
Mongo Error Singleton
- Annotations
- @native() @JSImport( "mongodb" , "MongoError" )
-
object
Okayable
Okayable Companion
-
object
ReadPreference
extends Object
Read Preference Companion
Read Preference Companion
- Annotations
- @native() @JSName( "ReadPreference" )
-
object
Server
extends Object
MongoDB Server
MongoDB Server
- Annotations
- @native() @JSName( "Server" )