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 Admin extends Object

    Permalink

    Mongo Administrative Functions

    Mongo Administrative Functions

    Annotations
    @RawJSType() @native()
  2. trait AggregationCursor[T] extends Object with Readable

    Permalink

    Aggregation Cursor

    Aggregation Cursor

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

    Permalink

    Aggregation Cursor Options

    Aggregation Cursor Options

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

    Permalink

    Aggregation Options

    Aggregation Options

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

    Permalink

    Bulk Write Operation Result Object

    Bulk Write Operation Result Object

    Annotations
    @RawJSType() @ScalaJSDefined()
  6. class BulkWriteResult extends Object

    Permalink

    Bulk Write Result

    Bulk Write Result

    Annotations
    @RawJSType() @native() @JSName( "BulkWriteResult" )
  7. class Chunk extends Object

    Permalink

    Chunk

    Chunk

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "Chunk" )
  8. class Code extends Object

    Permalink

    A class representation of the BSON Code type.

    A class representation of the BSON Code type.

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

  10. trait CollectionInfo extends Object

    Permalink

    {"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() @native()
  11. trait CollectionInfo_IdIndex extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  12. trait CollectionInfo_Info extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  13. class CollectionOptions extends Object

    Permalink

    Mongo Collection Retrieval Options

    Mongo Collection Retrieval Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  14. trait CommandCursor[T] extends Object with Readable

    Permalink

    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

  15. trait CommandResult extends Object

    Permalink

    Command Result

    Command Result

    Annotations
    @RawJSType() @native()
  16. class Connection extends Object

    Permalink

    MongoDB Connection

    MongoDB Connection

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

  18. class CountOptions extends Object

    Permalink

    Count Options

    Count Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  19. trait Cursor[T] extends Object with Readable

    Permalink

    Cursor

    Cursor

    Annotations
    @RawJSType() @native()
    See also

    https://mongodb.github.io/node-mongodb-native/api-generated/cursor.html
  20. implicit final class CursorExtensions[T] extends AnyVal

    Permalink

    Cursor Extensions

  21. type CursorFlag = String

    Permalink
  22. class CursorOptions extends Object

    Permalink

    Cursor Options

    Cursor Options

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

    Permalink

    Cursor Stream

    Cursor Stream

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

    Permalink

    Mongo DSL Extensions

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

  26. class DbOptions extends Object

    Permalink

    Database Options

    Database Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  27. class DbSharingOptions extends Object

    Permalink

    Database Clone Options

    Database Clone Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  28. trait DbStats extends Object

    Permalink

    Database Statistics

    Database Statistics

    Annotations
    @RawJSType() @native()
  29. class DbStatsOptions extends Object

    Permalink

    Database Statistics Options

    Database Statistics Options

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

    Permalink

    Delete Options

    Delete Options

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

    Permalink

    Delete Write Operation Result

    Delete Write Operation Result

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

    Permalink

    Find And Modify Write Operation Result

    Find And Modify Write Operation Result

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

    Permalink

    Find-And-Update Options

    Find-And-Update Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  34. class IndexInformationOptions extends Object

    Permalink

    Index Information Options

    Index Information Options

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

    Permalink

    Index Options

    Index Options

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

    Permalink

    Insert Write Operation Result

    Insert Write Operation Result

    Annotations
    @RawJSType() @native()
  37. class ListCollectionsOptions extends Object

    Permalink

    List Collections Options

    List Collections Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  38. type MongoCallback[T] = Function2[MongoError, T, Any]

    Permalink

    The callback format for results

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

  40. trait MongoClientClass extends Object

    Permalink

    Mongo Client Class

    Mongo Client Class

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

    Permalink

    Mongo Client Extensions

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

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

  44. 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
  45. class ObjectID extends Object

    Permalink

    MongoDB ObjectID

    MongoDB ObjectID

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

    Permalink

    Operation Result

    Operation Result

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

    Permalink

    Profiling Information

    Profiling Information

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

    Permalink

    Mongo Projection Enrichment

  49. class ReadPreference extends Object

    Permalink

    Read Preference

    Read Preference

    Annotations
    @RawJSType() @native() @JSImport( "mongodb" , "ReadPreference" )
  50. class ReadPreferenceOptions extends Object

    Permalink

    Read Preference Options

    Read Preference Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  51. class RemoveUserOptions extends Object

    Permalink

    Remove User Options.

    Remove User Options.

    Annotations
    @RawJSType()
  52. class RenameOptions extends Object

    Permalink

    Rename Options

    Rename Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  53. class ReplSet extends Object

    Permalink

    MongoDB Replica Set Servers

    MongoDB Replica Set Servers

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

    Permalink

    Document Replacement Options

    Document Replacement Options

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

    Permalink

    MongoDB Server

    MongoDB Server

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

    Permalink

    Stream Transform

    Stream Transform

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

    Permalink

    Text Search Options

    Text Search Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  58. class UnorderedBulkOperation extends Object

    Permalink

    Unordered Bulk Operation

    Unordered Bulk Operation

    Annotations
    @RawJSType() @native() @JSName( "UnorderedBulkOperation" )
  59. class UpdateOptions extends Object

    Permalink

    Document Update Options

    Document Update Options

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

    Permalink

    Update Write Operation Result Object

    Update Write Operation Result Object

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

    Permalink

    Update Write Result

    Update Write Result

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

    Permalink

    Validation Result

    Validation Result

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

    Permalink

    Write Concern Error

    Write Concern Error

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

    Permalink

    Write Error

    Write Error

    Annotations
    @RawJSType() @native()
  65. 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. val AWAITDATA: CursorFlag

    Permalink
  23. object Admin

    Permalink

    Mongo Administrative Companion

  24. object BulkWriteOpResultObject

    Permalink

    Bulk Write Operation Result Object Companion

  25. object Chunk extends Object

    Permalink
    Annotations
    @native() @JSImport( "mongodb" , "Chunk" )
  26. object Collection

    Permalink

    Mongo Collection Companion

  27. object CommandCursor

    Permalink

    Command Cursor Singleton

  28. object Cursor extends Object

    Permalink

    Cursor Companion

    Cursor Companion

    Annotations
    @native() @JSImport( "mongodb" , "Cursor" )
  29. object DeleteWriteOpResult

    Permalink

    Delete Write Operation Result Companion

  30. object FindAndModifyWriteOpResult

    Permalink

    Find And Modify Write Operation Result Companion

  31. object InsertWriteOpResult

    Permalink

    Insert Write Operation Result Companion

  32. object MongoClient extends Object with MongoClientClass

    Permalink

    Mongo Client Companion

    Mongo Client Companion

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

    Permalink

    Mongo Client Class Companion

  34. object MongoError extends Object

    Permalink

    Mongo Error Singleton

    Mongo Error Singleton

    Annotations
    @native() @JSName( "MongoError" )
  35. val NOCURSORTIMEOUT: CursorFlag

    Permalink
  36. val OPLOGREPLAY: CursorFlag

    Permalink
  37. val PARTIAL: CursorFlag

    Permalink
  38. object ReadPreference extends Object

    Permalink

    Read Preference Companion

    Read Preference Companion

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

    Permalink

    MongoDB Server

    MongoDB Server

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

    Permalink

    Stream Transform

  41. val TAILABLE: CursorFlag

    Permalink
  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