Trait/Object

org.scalajs.nodejs.mongodb

Collection

Related Docs: object Collection | package mongodb

Permalink

trait Collection extends Object

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Collection
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aggregate[A <: Any](pipeline: Array[A], options: AggregationOptions = null): AggregationCursor

    Permalink
  5. def aggregate[B <: Any](pipeline: Array[_ <: Any], callback: Function2[MongoError, Array[B], Any]): Unit

    Permalink
  6. def aggregate[B <: Any](pipeline: Array[_ <: Any], options: AggregationOptions, callback: Function2[MongoError, Array[B], Any]): Unit

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bulkWrite(operations: Array[Any], options: Any = null): Promise[BulkWriteOpResultObject]

    Permalink
  9. def bulkWrite[A <: Any](operations: Array[A], callback: Function2[MongoError, BulkWriteOpResultObject, Any]): Unit

    Permalink
  10. def bulkWrite[A <: Any](operations: Array[A], options: Any, callback: Function2[MongoError, BulkWriteOpResultObject, Any]): Unit

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def count(query: Any, options: Any = null): Promise[Int]

    Permalink
  13. def count(query: Any, options: Any, callback: Function2[MongoError, Int, Any]): Unit

    Permalink
  14. def createIndex(fieldOrSpec: Any, options: IndexOptions = null): Promise[String]

    Permalink
  15. def createIndex(fieldOrSpec: Any, callback: Function2[MongoError, String, Any]): Unit

    Permalink
  16. def createIndex(fieldOrSpec: Any, options: IndexOptions, callback: Function2[MongoError, String, Any]): Unit

    Permalink
  17. def createIndexes(indexSpecs: Array[Any], callback: Function): Unit

    Permalink
  18. def deleteMany(filter: Any, options: DeleteOptions = null): Promise[DeleteWriteOpResult]

    Permalink
  19. def deleteMany(filter: Any, callback: Function2[MongoError, DeleteWriteOpResult, Any]): Unit

    Permalink
  20. def deleteMany(filter: Any, options: DeleteOptions, callback: Function2[MongoError, DeleteWriteOpResult, Any]): Unit

    Permalink
  21. def deleteOne(filter: Any, options: Any = null): Promise[DeleteWriteOpResult]

    Permalink
  22. def deleteOne(filter: Any, callback: Function): Unit

    Permalink
  23. def deleteOne(filter: Any, options: Any, callback: Function): Unit

    Permalink
  24. def distinct(key: Any, query: Any, options: Any, callback: Function): Unit

    Permalink
  25. def drop(): Promise[Any]

    Permalink
  26. def drop(callback: Function): Unit

    Permalink
  27. def dropIndex(indexName: String, options: Any, callback: Function): Unit

    Permalink
  28. def dropIndexes(callback: Function): Unit

    Permalink
  29. def ensureIndex(fieldOrSpec: Any, options: Any, callback: Function): Unit

    Permalink
  30. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def find(selector: Any, projection: Any): Cursor

    Permalink
  34. def find(selector: Any): Cursor

    Permalink
  35. def find(): Cursor

    Permalink
  36. def findAndRemove[T](query: Any, sort: Array[Any], options: Any): Promise[T]

    Permalink
  37. def findAndRemove(query: Any, sort: Array[Any], options: Any, callback: Function): Unit

    Permalink
  38. def findOneAndDelete(filter: Any, callback: Function): Unit

    Permalink
  39. def findOneAndDelete(filter: Any, options: Any, callback: Function): Unit

    Permalink
  40. def findOneAndReplace(filter: Any, replacement: Any, options: Any, callback: Function): Unit

    Permalink
  41. def findOneAndUpdate(filter: Any, update: Any, options: FindAndUpdateOptions = null): Promise[FindAndModifyWriteOpResult]

    Permalink
  42. def findOneAndUpdate(filter: Any, update: Any, callback: Function): Unit

    Permalink
  43. def findOneAndUpdate(filter: Any, update: Any, options: FindAndUpdateOptions, callback: Function): Unit

    Permalink
  44. def geoHaystackSearch(x: Double, y: Double, options: Any, callback: Function): Unit

    Permalink
  45. def geoNear(x: Double, y: Double, options: Any, callback: Function): Unit

    Permalink
  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  47. def group(keys: Any, condition: Any, initial: Any, reduce: Any, finalize: Any, command: Any, options: Any, callback: Function): Unit

    Permalink
  48. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  49. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  50. def indexExists(indexes: String): Promise[Boolean]

    Permalink
  51. def indexExists(indexes: String, callback: Function2[MongoError, Boolean, Any]): Unit

    Permalink
  52. def indexExists(indexes: Array[String]): Promise[Boolean]

    Permalink
  53. def indexExists(indexes: Array[String], callback: Function2[MongoError, Boolean, Any]): Unit

    Permalink
  54. def indexInformation(options: Any, callback: Function): Unit

    Permalink
  55. def indexes(callback: Function): Unit

    Permalink
  56. def initializeOrderedBulkOp(options: Any, callback: Function): Unit

    Permalink
  57. def initializeUnorderedBulkOp(options: Any): Unit

    Permalink
  58. def insert(doc: Any, options: WriteOptions, callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
  59. def insert(doc: Any, callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
  60. def insert(doc: Any): Promise[InsertWriteOpResult]

    Permalink
  61. def insertMany[T <: Any](docs: Array[T], options: WriteOptions = null): Promise[InsertWriteOpResult]

    Permalink
  62. def insertMany[T <: Any](docs: Array[T], callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
  63. def insertMany[T <: Any](docs: Array[T], options: WriteOptions, callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
  64. def insertOne(doc: Any, options: WriteOptions, callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
  65. def isCapped(callback: Function2[MongoError, Boolean, Any]): Unit

    Permalink
  66. def isCapped(): Promise[Boolean]

    Permalink
  67. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  68. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  69. def listIndexes(options: Any): Unit

    Permalink
  70. def mapReduce(map: String, reduce: String, options: Any, callback: Function): Unit

    Permalink
  71. def mapReduce(map: String, reduce: Function, options: Any, callback: Function): Unit

    Permalink
  72. def mapReduce(map: Function, reduce: String, options: Any, callback: Function): Unit

    Permalink
  73. def mapReduce(map: Function, reduce: Function, options: Any, callback: Function): Unit

    Permalink
  74. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  75. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  76. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  77. def options[T <: Any](): Promise[T]

    Permalink
  78. def options(callback: Function): Unit

    Permalink
  79. def parallelCollectionScan(options: Any, callback: Function): Unit

    Permalink
  80. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  81. def reIndex[T <: Any](): Promise[T]

    Permalink
  82. def reIndex(callback: Function): Unit

    Permalink
  83. def rename[T <: Any](newName: String, options: Any): Promise[T]

    Permalink
  84. def rename(newName: String, options: Any, callback: Function): Unit

    Permalink
  85. def replaceOne[T <: Any](filter: Any, doc: Any, options: Any = null): Promise[T]

    Permalink
  86. def replaceOne(filter: Any, doc: Any, callback: Function): Unit

    Permalink
  87. def replaceOne(filter: Any, doc: Any, options: Any, callback: Function): Unit

    Permalink
  88. def stats[T <: Any](options: Any = null): Promise[T]

    Permalink
  89. def stats(callback: Function): Unit

    Permalink
  90. def stats(options: Any, callback: Function): Unit

    Permalink
  91. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  92. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  93. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  94. def updateMany(filter: Any, update: Any, options: UpdateOptions = null): Promise[UpdateWriteOpResultObject]

    Permalink
  95. def updateMany(filter: Any, update: UpdateOptions, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
  96. def updateMany(filter: Any, update: Any, options: UpdateOptions, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
  97. def updateOne(filter: Any, update: Any, options: UpdateOptions = null): Promise[UpdateWriteOpResultObject]

    Permalink
  98. def updateOne(filter: Any, update: Any, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
  99. def updateOne(filter: Any, update: Any, options: UpdateOptions, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
  100. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  101. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def dropAllIndexes(callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use dropIndexes

  2. def findAndModify[T <: Any](query: Any, sort: Array[Any], doc: Any, options: Any = null): Promise[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead

  3. def findAndModify(query: Any, sort: Array[Any], doc: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead

  4. def findAndModify(query: Any, sort: Array[Any], doc: Any, options: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead

  5. def findOne[T <: Any](query: Any, options: Any = null): Promise[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use find().limit(1).next(function(err, doc){})

  6. def findOne(query: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use find().limit(1).next(function(err, doc){})

  7. def findOne(query: Any, options: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use find().limit(1).next(function(err, doc){})

  8. def insert[T <: Any](docs: Array[T], options: WriteOptions, callback: Function2[MongoError, InsertWriteOpResult, Any]): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use insertOne, insertMany or bulkWrite

  9. def remove(selector: Any, options: WriteOptions, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use deleteOne, deleteMany or bulkWrite

  10. def remove(selector: Any): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use deleteOne, deleteMany or bulkWrite

  11. def remove(): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use deleteOne, deleteMany or bulkWrite

  12. def save(doc: Any, options: Any = null): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use insertOne, insertMany, updateOne or updateMany

  13. def save(doc: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use insertOne, insertMany, updateOne or updateMany

  14. def save(doc: Any, options: Any, callback: Function): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use insertOne, insertMany, updateOne or updateMany

  15. def update(selector: Any, document: Any, options: WriteOptions = null): Promise[UpdateWriteOpResultObject]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use updateOne, updateMany or bulkWrite

  16. def update(selector: Any, document: Any): Promise[UpdateWriteOpResultObject]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use updateOne, updateMany or bulkWrite

  17. def update(selector: Any, document: Any, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use updateOne, updateMany or bulkWrite

  18. def update(selector: Any, document: Any, options: WriteOptions, callback: Function2[MongoError, UpdateWriteOpResultObject, Any]): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use updateOne, updateMany or bulkWrite

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped