p

io.scalajs.npm

mongodb

package mongodb

MongoDB package object

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. mongodb
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AggregationCursor extends Object with Readable

    Aggregation Cursor

    Aggregation Cursor

    Annotations
    @RawJSType() @native()
  2. class AggregationCursorOptions extends Object

    Aggregation Cursor Options

    Aggregation Cursor Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  3. class AggregationOptions extends Object

    Aggregation Options

    Aggregation Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  4. trait BulkWriteOpResultObject extends Object

    Bulk Write Operation Result Object

    Bulk Write Operation Result Object

    Annotations
    @RawJSType() @ScalaJSDefined()
  5. trait BulkWriteResult extends Object

    Bulk Write Result

    Bulk Write Result

    Annotations
    @RawJSType() @native()
  6. trait BulkWriteResultClass extends Object

    Bulk Write Result Class

    Bulk Write Result Class

    Annotations
    @RawJSType() @native()
  7. trait Chunk extends Object

    Chunk

    Chunk

    Annotations
    @RawJSType() @native()
  8. 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

  9. class CollectionOptions extends Object

    Mongo Collection Retrieval Options

    Mongo Collection Retrieval Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  10. class Connection extends Object

    MongoDB Connection

    MongoDB Connection

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "Connection" )
  11. 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

  12. 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
  13. trait CursorClass extends Object

    Cursor Class

    Cursor Class

    Annotations
    @RawJSType() @native()
  14. class CursorOptions extends Object

    Cursor Options

    Cursor Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  15. trait CursorStream extends Object with Readable

    Cursor Stream

    Cursor Stream

    Annotations
    @RawJSType() @native()
  16. implicit final class DSLExtensions extends AnyVal

    Mongo DSL Extensions

  17. 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

  18. class DbOptions extends Object

    Mongo Database Options

    Mongo Database Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  19. class DeleteOptions extends Object

    Delete Options

    Delete Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  20. trait DeleteWriteOpResult extends Object

    Delete Write Operation Result

    Delete Write Operation Result

    Annotations
    @RawJSType() @native()
  21. trait FindAndModifyWriteOpResult extends Object

    Find And Modify Write Operation Result

    Find And Modify Write Operation Result

    Annotations
    @RawJSType() @native()
  22. class FindAndUpdateOptions extends Object

    Find-And-Update Options

    Find-And-Update Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  23. class IndexOptions extends Object

    Index Options

    Index Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  24. trait InsertWriteOpResult extends Object

    Insert Write Operation Result

    Insert Write Operation Result

    Annotations
    @RawJSType() @native()
  25. trait MongoAdmin extends Object

    Mongo Administrative Functions

    Mongo Administrative Functions

    Annotations
    @RawJSType() @native()
  26. class MongoClient extends Object

    Mongo Client Module

    Mongo Client Module

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "MongoClient" )
    See also

    https://mongodb.github.io/node-mongodb-native/contents.html

  27. trait MongoClientClass extends Object

    Mongo Client Class

    Mongo Client Class

    Annotations
    @RawJSType() @native()
  28. implicit final class MongoClientExtensions extends AnyVal

    Mongo Client Extensions

  29. 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

  30. 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/

  31. 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
  32. class ObjectID extends Object

    MongoDB ObjectID

    MongoDB ObjectID

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "ObjectID" )
  33. trait OperationResult extends Object

    Operation Result

    Operation Result

    Annotations
    @RawJSType() @native()
  34. trait ProfilingInfo extends Object

    Profiling Information

    Profiling Information

    Annotations
    @RawJSType() @native()
  35. implicit final class ProjectionEnrichment extends AnyVal

    Mongo Projection Enrichment

  36. class ReadPreference extends Object

    Read Preference

    Read Preference

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "ReadPreference" )
  37. class ReplSet extends Object

    MongoDB Replica Set Servers

    MongoDB Replica Set Servers

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "ReplSet" )
  38. class ReplacementOptions extends Object

    Document Replacement Options

    Document Replacement Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  39. class Server extends Object

    MongoDB Server

    MongoDB Server

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "Server" )
  40. class StreamTransform extends Object

    Stream Transform

    Stream Transform

    Annotations
    @RawJSType() @ScalaJSDefined()
  41. class TextSearchOptions extends Object

    Text Search Options

    Text Search Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  42. trait UnorderedBulkOperation extends Object

    Unordered Bulk Operation

    Unordered Bulk Operation

    Annotations
    @RawJSType() @native()
  43. trait UnorderedBulkOperationClass extends Object

    Unordered Bulk Operation Class

    Unordered Bulk Operation Class

    Annotations
    @RawJSType() @native()
  44. class UpdateOptions extends Object

    Document Update Options

    Document Update Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  45. trait UpdateWriteOpResultObject extends Object

    Update Write Operation Result Object

    Update Write Operation Result Object

    Annotations
    @RawJSType() @native()
  46. trait UpdateWriteResult extends Object

    Update Write Result

    Update Write Result

    Annotations
    @RawJSType() @native()
  47. trait ValidationResult extends Object

    Validation Result

    Validation Result

    Annotations
    @RawJSType() @native()
  48. trait WriteConcernError extends Object

    Write Concern Error

    Write Concern Error

    Annotations
    @RawJSType() @native()
  49. trait WriteError extends Object

    Write Error

    Write Error

    Annotations
    @RawJSType() @native()
  50. class WriteOptions extends Object

    Write Options

    Write Options

    Annotations
    @RawJSType() @ScalaJSDefined()

Value Members

  1. def $addToSet(values: (String, Any)*): (String, Dictionary[Any])
    Annotations
    @inline()
  2. 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()
    Example:
    1. db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )

  3. 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()
    Example:
    1. db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )

  4. 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()
    Example:
    1. $each: [ 90, 92, 85 ]

  5. 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()
    Example:
    1. { students: { $elemMatch: { school: 102 } } }

  6. def $group(values: (String, Any)*): Dictionary[Any]
    Annotations
    @inline()
  7. def $group(document: ⇒ Any): Dictionary[Any]
    Annotations
    @inline()
  8. def $inc(deltas: (String, Double)*): (String, Dictionary[Double])

    Annotations
    @inline()
    Example:
    1. { $inc: { <field1>: <amount1>, <field2>: <amount2>, ... } }

  9. def $match(values: (String, Any)*): Dictionary[Any]
    Annotations
    @inline()
  10. def $match(document: ⇒ Any): Dictionary[Any]
    Annotations
    @inline()
  11. 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()
    Example:
    1. db.inventory.find( { $nor: [ { price: 1.99 }, { sale: true } ] } )

  12. 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()
    Example:
    1. db.inventory.find( { $nor: [ { price: 1.99 }, { sale: true } ] } )

  13. 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()
    Example:
    1. db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )

  14. 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()
    Example:
    1. db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )

  15. 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()
    Example:
    1. $position: 1

  16. def $pull(value: (String, Any)*): (String, Dictionary[Any])
    Annotations
    @inline()
  17. def $pull(value: ⇒ Any): (String, Any)
    Annotations
    @inline()
  18. 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()
    Example:
    1. { $set: { field1: value1, ... } }

  19. 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()
    Example:
    1. { $set: { field1: value1, ... } }

  20. def $text(options: ⇒ TextSearchOptions): (String, TextSearchOptions)

    Performs text search.

    Performs text search.

    Annotations
    @inline()
    Example:
    1. db.articles.find( { $text: { $search: "coffee" } } )

    See also

    https://docs.mongodb.org/manual/reference/operator/query/text/#op._S_text

  21. def $where(code: ⇒ String): (String, String)

    Matches documents that satisfy a JavaScript expression.

    Matches documents that satisfy a JavaScript expression.

    Annotations
    @inline()
    Example:
    1. db.myCollection.find( { $where: "this.credits == this.debits" } )

  22. 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()
  23. def deleteMany(filter: Any): Dictionary[Any]
    Annotations
    @inline()
  24. def deleteOne(filter: Any): Dictionary[Any]
    Annotations
    @inline()
  25. 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()
  26. def insertOne(document: Any): Dictionary[Any]
    Annotations
    @inline()
  27. def replaceOne(filter: Any, replacement: Any, upsert: Boolean = false): Dictionary[Any]
    Annotations
    @inline()
  28. implicit def tupleToJS[A](values: (String, A)): Any

    Implicit conversion tuple sequence to js.Dictionary

  29. def updateMany(filter: Any, update: Any, upsert: Boolean = false): Dictionary[Any]
    Annotations
    @inline()
  30. def updateOne(filter: Any, update: Any, upsert: Boolean = false): Dictionary[Any]
    Annotations
    @inline()
  31. object AggregationCursor

    Aggregation Cursor Companion

  32. object BulkWriteOpResultObject

    Bulk Write Operation Result Object Companion

  33. object BulkWriteResult extends Object with BulkWriteResultClass

    Bulk Write Result Singleton

    Bulk Write Result Singleton

    Annotations
    @native() @JSName( "BulkWriteResult" )
  34. object BulkWriteResultClass

    Bulk Write Result Class Companion

  35. object Collection

    Mongo Collection Companion

  36. object Cursor

    Cursor Companion

  37. object CursorClass

    Cursor Class Companion

  38. object Db

    Mongo Database Companion

  39. object DeleteWriteOpResult

    Delete Write Operation Result Companion

  40. object FindAndModifyWriteOpResult

    Find And Modify Write Operation Result Companion

  41. object InsertWriteOpResult

    Insert Write Operation Result Companion

  42. object MongoAdmin

    Mongo Administrative Companion

  43. object MongoClient extends Object with MongoClientClass

    Mongo Client Companion

    Mongo Client Companion

    Annotations
    @native() @JSImport( "mongodb" , "MongoClient" )
  44. object MongoClientClass

    Mongo Client Class Companion

  45. object MongoError extends Object

    Mongo Error Singleton

    Mongo Error Singleton

    Annotations
    @native() @JSName( "MongoError" )
  46. object ReadPreference extends Object

    Read Preference Companion

    Read Preference Companion

    Annotations
    @native() @JSName( "ReadPreference" )
  47. object Server extends Object

    MongoDB Server

    MongoDB Server

    Annotations
    @native() @JSName( "Server" )
  48. object StreamTransform

    Stream Transform

  49. object UnorderedBulkOperation extends Object with UnorderedBulkOperationClass
    Annotations
    @native() @JSName( "UnorderedBulkOperation" )
  50. object UnorderedBulkOperationClass

    Unordered Bulk Operation Class Companion

  51. object UpdateWriteResult

    Update Write Result Companion

Inherited from AnyRef

Inherited from Any

Ungrouped