Class

io.scalajs.npm.mongodb

CursorOptions

Related Doc: package mongodb

Permalink

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)

    Permalink

    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

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var awaitdata: UndefOr[Boolean]

    Permalink

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

  6. var batchSize: UndefOr[Int]

    Permalink

    batchSize the number of the subset of results to request the database to return for every request.

    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.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. var comment: UndefOr[String]

    Permalink

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

  9. var dbName: UndefOr[String]

    Permalink

    override the default dbName.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. var exhaust: UndefOr[Boolean]

    Permalink

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

  13. var explain: UndefOr[Boolean]

    Permalink

    return the explaination of the query.

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. var hint: UndefOr[Object]

    Permalink

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

  19. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  21. var limit: UndefOr[Int]

    Permalink

    the number of results to return.

    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.

  22. var max: UndefOr[Int]

    Permalink

    set maximum index bounds.

  23. var maxScan: UndefOr[Int]

    Permalink

    limit the number of items to scan.

  24. var maxTimeMS: UndefOr[Int]

    Permalink

    the number of miliseconds to wait before aborting the query.

  25. var min: UndefOr[Int]

    Permalink

    set minimum index bounds.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. var numberOfRetries: UndefOr[Int]

    Permalink

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

  30. var oplogReplay: UndefOr[Boolean]

    Permalink

    sets an internal flag, only applicable for tailable cursor.

  31. var partial: UndefOr[Boolean]

    Permalink

    have the sharded system return a partial result from mongos.

  32. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  33. var raw: UndefOr[Boolean]

    Permalink

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

  34. var read: UndefOr[Boolean]

    Permalink

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

  35. var returnKey: UndefOr[Boolean]

    Permalink

    only return the index key.

  36. var showDiskLoc: UndefOr[Boolean]

    Permalink

    show disk location of results.

  37. var skip: UndefOr[Int]

    Permalink

    the number of documents to skip.

  38. var snapshot: UndefOr[Boolean]

    Permalink

    Snapshot mode assures no duplicates are returned.

  39. var sort: Any

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  41. var tailable: UndefOr[Boolean]

    Permalink

    allow the cursor to be tailable.

  42. var tailableRetryInterval: UndefOr[Int]

    Permalink

    specify the miliseconds between getMores on tailable cursor.

  43. var timeout: UndefOr[Boolean]

    Permalink

    the allow the query to timeout.

  44. def toLocaleString(): String

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

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

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

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped