package mongodb
MongoDB package object
- Alphabetic
- By Inheritance
- mongodb
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
AggregationCursor
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()
-
trait
BulkWriteResult
extends Object
Bulk Write Result
Bulk Write Result
- Annotations
- @RawJSType() @native()
-
trait
BulkWriteResultClass
extends Object
Bulk Write Result Class
Bulk Write Result Class
- Annotations
- @RawJSType() @native()
-
trait
Chunk
extends Object
Chunk
Chunk
- Annotations
- @RawJSType() @native()
-
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
CollectionOptions
extends Object
Mongo Collection Retrieval Options
Mongo Collection Retrieval Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
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
Cursor
extends Object with Readable
Cursor
Cursor
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Cursor" )
- See also
https://mongodb.github.io/node-mongodb-native/api-generated/cursor.html
-
trait
CursorClass
extends Object
Cursor Class
Cursor Class
- Annotations
- @RawJSType() @native()
-
class
CursorOptions
extends Object
Cursor Options
Cursor Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
CursorStream
extends Object with Readable
Cursor Stream
Cursor Stream
- Annotations
- @RawJSType() @native()
-
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
Mongo Database Options
Mongo Database 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
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
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()
-
trait
MongoAdmin
extends Object
Mongo Administrative Functions
Mongo Administrative Functions
- Annotations
- @RawJSType() @native()
-
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()
-
implicit final
class
MongoClientExtensions
extends AnyVal
Mongo Client Extensions
-
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/
-
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
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" )
-
class
ReplSet
extends Object
MongoDB Replica Set Servers
MongoDB Replica Set Servers
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "ReplSet" )
-
class
ReplacementOptions
extends Object
Document Replacement Options
Document Replacement Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
Server
extends Object
MongoDB Server
MongoDB Server
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "Server" )
-
class
StreamTransform
extends Object
Stream Transform
Stream Transform
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
TextSearchOptions
extends Object
Text Search Options
Text Search Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
trait
UnorderedBulkOperation
extends Object
Unordered Bulk Operation
Unordered Bulk Operation
- Annotations
- @RawJSType() @native()
-
trait
UnorderedBulkOperationClass
extends Object
Unordered Bulk Operation Class
Unordered Bulk Operation Class
- Annotations
- @RawJSType() @native()
-
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
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
$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: -
def
callbackMongoFuture[R](f: (Function2[MongoError, R, Any]) ⇒ Unit): Future[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
deleteMany(filter: Any): Dictionary[Any]
- Annotations
- @inline()
-
def
deleteOne(filter: Any): Dictionary[Any]
- 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): Dictionary[Any]
- Annotations
- @inline()
-
def
replaceOne(filter: Any, replacement: Any, upsert: Boolean = false): Dictionary[Any]
- 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): Dictionary[Any]
- Annotations
- @inline()
-
def
updateOne(filter: Any, update: Any, upsert: Boolean = false): Dictionary[Any]
- Annotations
- @inline()
-
object
AggregationCursor
Aggregation Cursor Companion
-
object
BulkWriteOpResultObject
Bulk Write Operation Result Object Companion
-
object
BulkWriteResult
extends Object with BulkWriteResultClass
Bulk Write Result Singleton
Bulk Write Result Singleton
- Annotations
- @native() @JSName( "BulkWriteResult" )
-
object
BulkWriteResultClass
Bulk Write Result Class Companion
-
object
Collection
Mongo Collection Companion
-
object
Cursor
Cursor Companion
-
object
CursorClass
Cursor Class Companion
-
object
Db
Mongo Database Companion
-
object
DeleteWriteOpResult
Delete Write Operation Result Companion
-
object
FindAndModifyWriteOpResult
Find And Modify Write Operation Result Companion
-
object
InsertWriteOpResult
Insert Write Operation Result Companion
-
object
MongoAdmin
Mongo Administrative 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() @JSName( "MongoError" )
-
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" )
-
object
StreamTransform
Stream Transform
-
object
UnorderedBulkOperation
extends Object with UnorderedBulkOperationClass
- Annotations
- @native() @JSName( "UnorderedBulkOperation" )
-
object
UnorderedBulkOperationClass
Unordered Bulk Operation Class Companion
-
object
UpdateWriteResult
Update Write Result Companion