c

io.scalajs.npm.mongodb

CursorOptions

class CursorOptions extends Object

Cursor Options

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

Instance Constructors

  1. new CursorOptions(skip: UndefOr[Int] = js.undefined, limit: UndefOr[Int] = js.undefined, sort: Any = null, hint: UndefOr[Object] = js.undefined, explain: UndefOr[Boolean] = js.undefined, snapshot: UndefOr[Boolean] = js.undefined, timeout: UndefOr[Boolean] = js.undefined, tailable: UndefOr[Boolean] = js.undefined, awaitdata: UndefOr[Boolean] = js.undefined, oplogReplay: UndefOr[Boolean] = js.undefined, batchSize: UndefOr[Int] = js.undefined, raw: UndefOr[Boolean] = js.undefined, read: UndefOr[Boolean] = js.undefined, returnKey: UndefOr[Boolean] = js.undefined, maxScan: UndefOr[Int] = js.undefined, min: UndefOr[Int] = js.undefined, max: UndefOr[Int] = js.undefined, maxTimeMS: UndefOr[Int] = js.undefined, showDiskLoc: UndefOr[Boolean] = js.undefined, comment: UndefOr[String] = js.undefined, numberOfRetries: UndefOr[Int] = js.undefined, dbName: UndefOr[String] = js.undefined, tailableRetryInterval: UndefOr[Int] = js.undefined, exhaust: UndefOr[Boolean] = js.undefined, partial: UndefOr[Boolean] = js.undefined)

    skip

    the number of documents to skip.

    limit

    the number of results to return. -1 has a special meaning and is used by Db.eval. A value of 1 will also be treated as if it were -1.

    sort

    {Array | Object}, set to sort the documents coming back from the query. Array of indexes, 1 etc.

    hint

    {Object}, hint force the query to use a specific index.

    explain

    return the explaination of the query.

    snapshot

    Snapshot mode assures no duplicates are returned.

    timeout

    the allow the query to timeout.

    tailable

    allow the cursor to be tailable.

    awaitdata

    allow the cursor to wait for data, only applicable for tailable cursor.

    oplogReplay

    sets an internal flag, only applicable for tailable cursor.

    batchSize

    batchSize the number of the subset of results to request the database to return for every request. This should initially be greater than 1 otherwise the database will automatically close the cursor. The batch size can be set to 1 with cursorInstance.batchSize after performing the initial query to the database.

    raw

    return all query documents as raw buffers (default false).

    read

    specify override of read from source (primary/secondary).

    returnKey

    only return the index key.

    maxScan

    limit the number of items to scan.

    min

    set minimum index bounds.

    max

    set maximum index bounds.

    maxTimeMS

    the number of miliseconds to wait before aborting the query.

    showDiskLoc

    show disk location of results.

    comment

    you can put a $comment field on a query to make looking in the profiler logs simpler.

    numberOfRetries

    if using awaidata specifies the number of times to retry on timeout.

    dbName

    override the default dbName.

    tailableRetryInterval

    specify the miliseconds between getMores on tailable cursor.

    exhaust

    have the server send all the documents at once as getMore packets.

    partial

    have the sharded system return a partial result from mongos.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var awaitdata: UndefOr[Boolean]
  6. var batchSize: UndefOr[Int]
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. var comment: UndefOr[String]
  9. var dbName: UndefOr[String]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. var exhaust: UndefOr[Boolean]
  13. var explain: UndefOr[Boolean]
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  18. var hint: UndefOr[Object]
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  21. var limit: UndefOr[Int]
  22. var max: UndefOr[Int]
  23. var maxScan: UndefOr[Int]
  24. var maxTimeMS: UndefOr[Int]
  25. var min: UndefOr[Int]
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  29. var numberOfRetries: UndefOr[Int]
  30. var oplogReplay: UndefOr[Boolean]
  31. var partial: UndefOr[Boolean]
  32. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  33. var raw: UndefOr[Boolean]
  34. var read: UndefOr[Boolean]
  35. var returnKey: UndefOr[Boolean]
  36. var showDiskLoc: UndefOr[Boolean]
  37. var skip: UndefOr[Int]
  38. var snapshot: UndefOr[Boolean]
  39. var sort: Any
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. var tailable: UndefOr[Boolean]
  42. var tailableRetryInterval: UndefOr[Int]
  43. var timeout: UndefOr[Boolean]
  44. def toLocaleString(): String
    Definition Classes
    Object
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def valueOf(): Any
    Definition Classes
    Object
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped