Object/Class

io.scalajs.npm.mongoose

Mongoose

Related Docs: class Mongoose | package mongoose

Permalink

object Mongoose extends Object with Connectable

Mongoose Singleton

Annotations
@native() @JSImport( "mongoose" , JSImport.Namespace )
Linear Supertypes
Connectable, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mongoose
  2. Connectable
  3. Object
  4. Any
  5. AnyRef
  6. 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. var Promise: Any

    Permalink

    The promises library in use by Mongoose

  5. object Schema extends Object

    Permalink
    Annotations
    @native()
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def connect(uri: String, callback: Function2[MongooseError, Connection, Any]): Unit

    Permalink

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    callback

    the optional callback

    Definition Classes
    Connectable
  9. def connect(uri: String, collection: String, callback: Function2[MongooseError, Connection, Any]): Unit

    Permalink

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    collection

    the collection

    callback

    the optional callback

    Definition Classes
    Connectable
  10. def connect(uri: String, options: |[ConnectionOptions, RawOptions], callback: Function2[MongooseError, Connection, Any]): Unit

    Permalink

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    options

    the optional options

    callback

    the optional callback

    Definition Classes
    Connectable
  11. def connect(uri: String, collection: String): Connection

    Permalink

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    collection

    the collection

    returns

    the mongoose connection

    Definition Classes
    Connectable
  12. def connect(uri: String, options: |[ConnectionOptions, RawOptions] = js.native): Connection

    Permalink

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    options

    the optional options

    returns

    the mongoose connection

    Definition Classes
    Connectable
  13. def connection: Connection

    Permalink

    This is the connection used by default for every model created using mongoose.model.

  14. def createConnection(url: String, options: |[ConnectionOptions, RawOptions] = js.native): Connection

    Permalink

  15. def disconnect(callback: Function1[Error, Any]): Unit

    Permalink

    Disconnects all connections.

    Disconnects all connections.

    callback

    the call back

  16. def disconnect(): MongooseThenable[Unit]

    Permalink

    Disconnects all connections.

  17. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def get[T](key: String): UndefOr[T]

    Permalink

    Gets mongoose options

    Gets mongoose options

    key

    the given key

    returns

    the associated value

  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  26. def model[A](modelName: String, schema: Schema[A] = js.native, collectionName: String = js.native): MongooseModel[A]

    Permalink

    modelName

    the name of the model

    schema

    the Schema

    collectionName

    the collection name

    returns

    the model

  27. def modelNames(): Array[String]

    Permalink

    Returns an array of model names created on this instance of Mongoose.

    Returns an array of model names created on this instance of Mongoose.

    returns

    an array of model names

  28. def mongo: MongoDB

    Permalink

    The MongoDB instance

  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def open(host: String, database: String, port: Int, options: RawOptions = js.native): Unit

    Permalink

  33. def plugin(callback: Function, options: RawOptions = js.native): Unit

    Permalink

    Declares a global plugin executed on all Schemas.

    Declares a global plugin executed on all Schemas.

    callback

    the plugin callback

    options

    the optional options

  34. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  35. def set(key: String, value: Any): Unit

    Permalink

    Sets mongoose options

    Sets mongoose options

    key

    the options key

    value

    the the value to set or function

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. def valueOf(): Any

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

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

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

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

Inherited from Connectable

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped