Package

io.scalajs.npm

mongodb

Permalink

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

    Permalink

    Aggregation Cursor

    Aggregation Cursor

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

    Permalink

    Aggregation Cursor Options

    Aggregation Cursor Options

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

    Permalink

    Aggregation Options

    Aggregation Options

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

    Permalink

    Bulk Write Operation Result Object

    Bulk Write Operation Result Object

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

    Permalink

    Bulk Write Result

    Bulk Write Result

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

    Permalink

    Bulk Write Result Class

    Bulk Write Result Class

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

    Permalink

    Chunk

    Chunk

    Annotations
    @RawJSType() @native()
  8. trait Collection extends Object

    Permalink

    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

    Permalink

    Mongo Collection Retrieval Options

    Mongo Collection Retrieval Options

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

    Permalink

    MongoDB Connection

    MongoDB Connection

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "Connection" )
  11. class ConnectionOptions extends Object

    Permalink

    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

    Permalink

    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

    Permalink

    Cursor Class

    Cursor Class

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

    Permalink

    Cursor Options

    Cursor Options

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

    Permalink

    Cursor Stream

    Cursor Stream

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

    Permalink

    Mongo DSL Extensions

  17. class Db extends Object

    Permalink

    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

    Permalink

    Mongo Database Options

    Mongo Database Options

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

    Permalink

    Delete Options

    Delete Options

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

    Permalink

    Delete Write Operation Result

    Delete Write Operation Result

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

    Permalink

    Find And Modify Write Operation Result

    Find And Modify Write Operation Result

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

    Permalink

    Find-And-Update Options

    Find-And-Update Options

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

    Permalink

    Index Options

    Index Options

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

    Permalink

    Insert Write Operation Result

    Insert Write Operation Result

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

    Permalink

    Mongo Administrative Functions

    Mongo Administrative Functions

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

    Permalink

    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

    Permalink

    Mongo Client Class

    Mongo Client Class

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

    Permalink

    Mongo Client Extensions

  29. class MongoClientOptions extends Object

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    MongoDB ObjectID

    MongoDB ObjectID

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

    Permalink

    Operation Result

    Operation Result

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

    Permalink

    Profiling Information

    Profiling Information

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

    Permalink

    Mongo Projection Enrichment

  36. class ReadPreference extends Object

    Permalink

    Read Preference

    Read Preference

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

    Permalink

    MongoDB Replica Set Servers

    MongoDB Replica Set Servers

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

    Permalink

    Document Replacement Options

    Document Replacement Options

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

    Permalink

    MongoDB Server

    MongoDB Server

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

    Permalink

    Stream Transform

    Stream Transform

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

    Permalink

    Text Search Options

    Text Search Options

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

    Permalink

    Unordered Bulk Operation

    Unordered Bulk Operation

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

    Permalink

    Unordered Bulk Operation Class

    Unordered Bulk Operation Class

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

    Permalink

    Document Update Options

    Document Update Options

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

    Permalink

    Update Write Operation Result Object

    Update Write Operation Result Object

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

    Permalink

    Update Write Result

    Update Write Result

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

    Permalink

    Validation Result

    Validation Result

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

    Permalink

    Write Concern Error

    Write Concern Error

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

    Permalink

    Write Error

    Write Error

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

    Permalink

    Write Options

    Write Options

    Annotations
    @RawJSType() @ScalaJSDefined()

Value Members

  1. def $addToSet(values: (String, Any)*): (String, Dictionary[Any])

    Permalink
    Annotations
    @inline()
  2. def $and(array: ⇒ Array[Any]): (String, Array[Any])

    Permalink

    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]])

    Permalink

    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}

    Permalink

    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)

    Permalink

    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]

    Permalink
    Annotations
    @inline()
  7. def $group(document: ⇒ Any): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  8. def $inc(deltas: (String, Double)*): (String, Dictionary[Double])

    Permalink

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

  9. def $match(values: (String, Any)*): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  10. def $match(document: ⇒ Any): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  11. def $nor(array: ⇒ Array[Any]): (String, Array[Any])

    Permalink

    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]])

    Permalink

    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])

    Permalink

    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]])

    Permalink

    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)

    Permalink

    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])

    Permalink
    Annotations
    @inline()
  17. def $pull(value: ⇒ Any): (String, Any)

    Permalink
    Annotations
    @inline()
  18. def $set(value: (String, Any)*): (String, Dictionary[Any])

    Permalink

    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)

    Permalink

    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)

    Permalink

    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)

    Permalink

    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. object AggregationCursor

    Permalink

    Aggregation Cursor Companion

  23. object BulkWriteOpResultObject

    Permalink

    Bulk Write Operation Result Object Companion

  24. object BulkWriteResult extends Object with BulkWriteResultClass

    Permalink

    Bulk Write Result Singleton

    Bulk Write Result Singleton

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

    Permalink

    Bulk Write Result Class Companion

  26. object Collection

    Permalink

    Mongo Collection Companion

  27. object Cursor

    Permalink

    Cursor Companion

  28. object CursorClass

    Permalink

    Cursor Class Companion

  29. object Db

    Permalink

    Mongo Database Companion

  30. object DeleteWriteOpResult

    Permalink

    Delete Write Operation Result Companion

  31. object FindAndModifyWriteOpResult

    Permalink

    Find And Modify Write Operation Result Companion

  32. object InsertWriteOpResult

    Permalink

    Insert Write Operation Result Companion

  33. object MongoAdmin

    Permalink

    Mongo Administrative Companion

  34. object MongoClient extends Object with MongoClientClass

    Permalink

    Mongo Client Companion

    Mongo Client Companion

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

    Permalink

    Mongo Client Class Companion

  36. object MongoError extends Object

    Permalink

    Mongo Error Singleton

    Mongo Error Singleton

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

    Permalink

    Read Preference Companion

    Read Preference Companion

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

    Permalink

    MongoDB Server

    MongoDB Server

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

    Permalink

    Stream Transform

  40. object UnorderedBulkOperation extends Object with UnorderedBulkOperationClass

    Permalink
    Annotations
    @native() @JSName( "UnorderedBulkOperation" )
  41. object UnorderedBulkOperationClass

    Permalink

    Unordered Bulk Operation Class Companion

  42. object UpdateWriteResult

    Permalink

    Update Write Result Companion

  43. def callbackMongoFuture[R](f: (Function2[MongoError, R, Any]) ⇒ Unit): Future[R]

    Permalink

    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()
  44. def deleteMany(filter: Any): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  45. def deleteOne(filter: Any): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  46. def doc(kvps: (String, Any)*): Dictionary[Any]

    Permalink

    Creates a new JSON document

    Creates a new JSON document

    kvps

    the given key-value pairs

    returns

    a new document

    Annotations
    @inline()
  47. package gridfs

    Permalink

    mongodb/gridfs package object

  48. def insertOne(document: Any): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  49. def replaceOne(filter: Any, replacement: Any, upsert: Boolean = false): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  50. implicit def tupleToJS[A](values: (String, A)): Any

    Permalink

    Implicit conversion tuple sequence to js.Dictionary

  51. def updateMany(filter: Any, update: Any, upsert: Boolean = false): Dictionary[Any]

    Permalink
    Annotations
    @inline()
  52. def updateOne(filter: Any, update: Any, upsert: Boolean = false): Dictionary[Any]

    Permalink
    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped