Class

reactivemongo.api.collections.bson

BSONQueryBuilder

Related Doc: package bson

Permalink

case class BSONQueryBuilder(collection: Collection, failoverStrategy: FailoverStrategy, queryOption: Option[BSONDocument] = None, sortOption: Option[BSONDocument] = None, projectionOption: Option[BSONDocument] = None, hintOption: Option[BSONDocument] = None, explainFlag: Boolean = false, snapshotFlag: Boolean = false, commentString: Option[String] = None, options: QueryOpts = QueryOpts(), maxTimeMsOption: Option[Long] = None) extends GenericQueryBuilder[BSONSerializationPack.type] with Product with Serializable

Annotations
@SerialVersionUID() @deprecated
Deprecated

(Since version 0.16.0) Useless, will be remove

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONQueryBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GenericQueryBuilder
  7. QueryOps
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BSONQueryBuilder(collection: Collection, failoverStrategy: FailoverStrategy, queryOption: Option[BSONDocument] = None, sortOption: Option[BSONDocument] = None, projectionOption: Option[BSONDocument] = None, hintOption: Option[BSONDocument] = None, explainFlag: Boolean = false, snapshotFlag: Boolean = false, commentString: Option[String] = None, options: QueryOpts = QueryOpts(), maxTimeMsOption: Option[Long] = None)

    Permalink

Type Members

  1. type Self = BSONQueryBuilder

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilderQueryOps

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to any2stringadd[BSONQueryBuilder] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BSONQueryBuilder, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def allowPartialResults: Self

    Permalink

    For queries against a sharded collection, returns partial results from the mongos if some shards are unavailable instead of throwing an error.

    For queries against a sharded collection, returns partial results from the mongos if some shards are unavailable instead of throwing an error.

    Definition Classes
    GenericQueryBuilder
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def awaitData: Self

    Permalink

    Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data.

    Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data. Use along with TailableCursor.

    Definition Classes
    GenericQueryBuilderQueryOps
  9. def batchSize(n: Int): Self

    Permalink

    Sets an upper limit on the number of documents to retrieve per batch.

    Sets an upper limit on the number of documents to retrieve per batch. Defaults to 0 (meaning no upper limit - MongoDB decides).

    Definition Classes
    GenericQueryBuilderQueryOps
  10. lazy val builder: Builder[pack.type]

    Permalink
    Definition Classes
    GenericQueryBuilder
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collation(collation: Collation): Self

    Permalink

    Sets the collation document.

    Sets the collation document.

    Definition Classes
    GenericQueryBuilder
    Since

    MongoDB 3.4

    import reactivemongo.api.Collation
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    def foo(coll: BSONCollection, c: Collation) =
      coll.find(BSONDocument.empty).collation(c)
  13. def collation: Option[Collation]

    Permalink

    The optional collation to use for the find command (default: None).

    The optional collation to use for the find command (default: None).

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
    Since

    MongoDB 3.4

  14. val collection: Collection

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  15. def comment(message: String): Self

    Permalink

    Adds a comment to this query, that may appear in the MongoDB logs.

    Adds a comment to this query, that may appear in the MongoDB logs.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      comment("Any comment to trace the query")
    Definition Classes
    GenericQueryBuilder
  16. val commentString: Option[String]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  17. def copy(queryOption: Option[BSONDocument] = queryOption, sortOption: Option[BSONDocument] = sortOption, projectionOption: Option[BSONDocument] = projectionOption, hintOption: Option[BSONDocument] = hintOption, explainFlag: Boolean = explainFlag, snapshotFlag: Boolean = snapshotFlag, commentString: Option[String] = commentString, options: QueryOpts = options, failoverStrategy: FailoverStrategy = failoverStrategy, maxTimeMsOption: Option[Long] = maxTimeMsOption): BSONQueryBuilder

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  18. def cursor[T](readPreference: ReadPreference = readPreference, isMongo26WriteOp: Boolean = false)(implicit reader: Reader[T], cp: CursorProducer[T]): ProducedCursor

    Permalink

    Returns a Cursor for the result of this query.

    Returns a Cursor for the result of this query.

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.Cursor
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def findAllVisible(coll: BSONCollection)(
      implicit ec: ExecutionContext): Future[List[BSONDocument]] =
      coll.find(BSONDocument("visible" -> true)).
        cursor[BSONDocument]().collect[List](
         maxDocs = 10,
         err = Cursor.FailOnError[List[BSONDocument]]())
    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  19. def ensuring(cond: (BSONQueryBuilder) ⇒ Boolean, msg: ⇒ Any): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (BSONQueryBuilder) ⇒ Boolean): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: ⇒ Any): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def exhaust: Self

    Permalink

    Toggles Exhaust

    Toggles Exhaust

    Definition Classes
    GenericQueryBuilderQueryOps
  25. def explain(flag: Boolean = true): Self

    Permalink

    Toggles explain mode.

    Toggles explain mode.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).explain()
    Definition Classes
    GenericQueryBuilder
  26. val explainFlag: Boolean

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  27. val failoverStrategy: FailoverStrategy

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to StringFormat[BSONQueryBuilder] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hint(document: Document): Self

    Permalink

    Sets the hint document (a document that declares the index MongoDB should use for this query).

    Sets the hint document (a document that declares the index MongoDB should use for this query).

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      hint(BSONDocument("hint" -> 1)) // sets the hint
    Definition Classes
    GenericQueryBuilder
  32. val hintOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def max(document: Document): Self

    Permalink

    Sets the max document.

    Sets the max document.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      max(BSONDocument("field" -> "maxValue"))
    Definition Classes
    GenericQueryBuilder
  35. def max: Option[Document]

    Permalink

    The optional exclusive upper bound for a specific index (default: None).

    The optional exclusive upper bound for a specific index (default: None).

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  36. def maxScan(max: Double): Self

    Permalink

    Sets the maxScan flag.

    Sets the maxScan flag.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      maxScan(1.23D)
    Definition Classes
    GenericQueryBuilder
  37. def maxScan: Option[Double]

    Permalink

    This option specifies a maximum number of documents or index keys the query plan will scan.

    This option specifies a maximum number of documents or index keys the query plan will scan.

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  38. def maxTimeMs(p: Long): Self

    Permalink

    Adds maxTimeMs to query.

    Adds maxTimeMs to query.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      maxTimeMs(1000L/* 1s */)
    Definition Classes
    GenericQueryBuilder
  39. val maxTimeMsOption: Option[Long]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  40. def min(document: Document): Self

    Permalink

    Sets the min document.

    Sets the min document.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      min(BSONDocument("field" -> "minValue"))
    Definition Classes
    GenericQueryBuilder
  41. def min: Option[Document]

    Permalink

    The optional exclusive lower bound for a specific index (default: None).

    The optional exclusive lower bound for a specific index (default: None).

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. def noCursorTimeout: Self

    Permalink

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Definition Classes
    GenericQueryBuilderQueryOps
  44. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  46. def one[T](readPreference: ReadPreference)(implicit reader: Reader[T], ec: ExecutionContext): Future[Option[T]]

    Permalink

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.ReadPreference
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def findUser(coll: BSONCollection, name: String)(
      implicit ec: ExecutionContext): Future[Option[BSONDocument]] =
      coll.find(BSONDocument("user" -> name)).
        one[BSONDocument](ReadPreference.primaryPreferred)
    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  47. def one[T](implicit reader: Reader[T], ec: ExecutionContext): Future[Option[T]]

    Permalink

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption) (using the default reactivemongo.api.ReadPreference).

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption) (using the default reactivemongo.api.ReadPreference).

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.bson.{ BSONDocument, Macros }
    import reactivemongo.api.bson.collection.BSONCollection
    
    case class User(name: String, pass: String)
    
    implicit val handler = Macros.reader[User]
    
    def findUser(coll: BSONCollection, name: String)(
      implicit ec: ExecutionContext): Future[Option[User]] =
      coll.find(BSONDocument("user" -> name)).one[User]
    T

    the results type

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  48. def oplogReplay: Self

    Permalink

    Toggles OplogReplay

    Toggles OplogReplay

    Definition Classes
    GenericQueryBuilderQueryOps
  49. def options(options: QueryOpts): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
  50. val options: QueryOpts

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  51. val pack: BSONSerializationPack.type

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  52. def projection(p: Document): Self

    Permalink

    Sets the projection specification to determine which fields to include in the returned documents.

    Sets the projection specification to determine which fields to include in the returned documents.

    Definition Classes
    GenericQueryBuilder
  53. def projection[Pjn](p: Pjn)(implicit writer: Writer[Pjn]): Self

    Permalink

    Sets the projection specification to determine which fields to include in the returned documents.

    Sets the projection specification to determine which fields to include in the returned documents.

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.Cursor
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def findAllWithProjection(coll: BSONCollection)(
      implicit ec: ExecutionContext): Future[List[BSONDocument]] =
      coll.find(BSONDocument.empty).
        projection(BSONDocument("age" -> 1)). // only consider 'age' field
        cursor[BSONDocument]().
        collect[List](
          maxDocs = 100,
          err = Cursor.FailOnError[List[BSONDocument]]())
    Pjn

    The type of the projection. An implicit Writer[Pjn] typeclass for handling it has to be in the scope.

    Definition Classes
    GenericQueryBuilder
  54. val projectionOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  55. val queryOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  56. def readConcern(concern: ReadConcern): Self

    Permalink

    Sets the ReadConcern.

    Sets the ReadConcern.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      readConcern(reactivemongo.api.ReadConcern.Local)
    Definition Classes
    GenericQueryBuilder
  57. def readConcern: ReadConcern

    Permalink

    The read concern

    The read concern

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
    Since

    MongoDB 3.6

  58. def requireOne[T](readPreference: ReadPreference)(implicit reader: Reader[T], ec: ExecutionContext): Future[T]

    Permalink

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.ReadPreference
    import reactivemongo.api.bson.{ BSONDocument, Macros }
    import reactivemongo.api.bson.collection.BSONCollection
    
    case class User(name: String, pass: String)
    
    implicit val handler = Macros.handler[User]
    
    def findUser(coll: BSONCollection, name: String)(
      implicit ec: ExecutionContext): Future[User] =
      coll.find(BSONDocument("user" -> name)).
        requireOne[User](ReadPreference.primaryPreferred)
    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  59. def requireOne[T](implicit reader: Reader[T], ec: ExecutionContext): Future[T]

    Permalink

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head) (using the default reactivemongo.api.ReadPreference).

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head) (using the default reactivemongo.api.ReadPreference).

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def findUser(coll: BSONCollection, name: String)(
      implicit ec: ExecutionContext): Future[BSONDocument] =
      coll.find(BSONDocument("user" -> name)).requireOne[BSONDocument]
    T

    the results type

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  60. def returnKey(flag: Boolean = true): Self

    Permalink

    Sets the returnKey flag.

    Sets the returnKey flag.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).returnKey()
    Definition Classes
    GenericQueryBuilder
  61. def returnKey: Boolean

    Permalink

    If this flag is true, returns only the index keys in the resulting documents.

    If this flag is true, returns only the index keys in the resulting documents.

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  62. def showRecordId(flag: Boolean = true): Self

    Permalink

    Sets the showRecordId flag.

    Sets the showRecordId flag.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      showRecordId()
    Definition Classes
    GenericQueryBuilder
  63. def showRecordId: Boolean

    Permalink

    The flags to determines whether to return the record identifier for each document.

    The flags to determines whether to return the record identifier for each document.

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  64. def singleBatch(flag: Boolean = true): Self

    Permalink

    Sets the singleBatch flag.

    Sets the singleBatch flag.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).
      singleBatch()
    Definition Classes
    GenericQueryBuilder
  65. def singleBatch: Boolean

    Permalink

    The flag to determines whether to close the cursor after the first batch (default: false)

    The flag to determines whether to close the cursor after the first batch (default: false)

    Definition Classes
    GenericQueryBuilder
    Annotations
    @inline()
  66. def skip(n: Int): Self

    Permalink

    Sets the number of documents to skip at the beginning of the results.

    Sets the number of documents to skip at the beginning of the results.

    Definition Classes
    GenericQueryBuilderQueryOps
    See also

    QueryOpts.skipN

  67. def slaveOk: Self

    Permalink

    Toggles SlaveOk: The query is might be run on a secondary.

    Toggles SlaveOk: The query is might be run on a secondary.

    Definition Classes
    GenericQueryBuilderQueryOps
  68. def snapshot(flag: Boolean = true): Self

    Permalink

    Toggles snapshot mode.

    Toggles snapshot mode.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection) = coll.find(BSONDocument.empty).snapshot()
    Definition Classes
    GenericQueryBuilder
  69. val snapshotFlag: Boolean

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  70. def sort(document: Document): Self

    Permalink

    Sets the sort specification for the ordering of the results.

    Sets the sort specification for the ordering of the results.

    import scala.concurrent.{ ExecutionContext, Future }
    
    import reactivemongo.api.Cursor
    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONCollection
    
    def findSortedVisible(coll: BSONCollection)(
      implicit ec: ExecutionContext): Future[List[BSONDocument]] =
      coll.find(BSONDocument("visible" -> true)).
        sort(BSONDocument("age" -> 1)). // sort per age
        cursor[BSONDocument]().
        collect[List](
          maxDocs = 100,
          err = Cursor.FailOnError[List[BSONDocument]]())
    Definition Classes
    GenericQueryBuilder
  71. val sortOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  73. def tailable: Self

    Permalink

    Toggles TailableCursor: Makes the cursor not to close after all the data is consumed.

    Toggles TailableCursor: Makes the cursor not to close after all the data is consumed.

    Definition Classes
    GenericQueryBuilderQueryOps
  74. lazy val version: MongoWireVersion

    Permalink
    Attributes
    protected
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  75. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. def [B](y: B): (BSONQueryBuilder, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def filter(predicate: Document): Self

    Permalink

    Sets the query predicate; If unspecified, then all documents in the collection will match the predicate.

    Sets the query predicate; If unspecified, then all documents in the collection will match the predicate.

    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.4) Specify the filter predicate using collection.find(..)

  2. def filter[Qry](predicate: Qry)(implicit writer: Writer[Qry]): Self

    Permalink

    Sets the query predicate; If unspecified, then all documents in the collection will match the predicate.

    Sets the query predicate; If unspecified, then all documents in the collection will match the predicate.

    Qry

    The type of the query. An implicit Writer[Qry] typeclass for handling it has to be in the scope.

    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.4) Specify the filter predicate using collection.find(..)

  3. def partial: Self

    Permalink

    Toggles Partial: The response can be partial - if a shard is down, no error will be thrown.

    Toggles Partial: The response can be partial - if a shard is down, no error will be thrown.

    Definition Classes
    GenericQueryBuilderQueryOps
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.8) Use allowPartialResults

  4. def query(selector: Document): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.2) Use filter

  5. def query[Qry](selector: Qry)(implicit writer: Writer[Qry]): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.2) Use filter

  6. def readPreference: ReadPreference

    Permalink

    The default ReadPreference

    The default ReadPreference

    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.16.0) Internal: will be made private

  7. def updateOptions(update: (QueryOpts) ⇒ QueryOpts): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.4) Use options or the separate query ops

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryOps

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BSONQueryBuilder to any2stringadd[BSONQueryBuilder]

Inherited by implicit conversion StringFormat from BSONQueryBuilder to StringFormat[BSONQueryBuilder]

Inherited by implicit conversion Ensuring from BSONQueryBuilder to Ensuring[BSONQueryBuilder]

Inherited by implicit conversion ArrowAssoc from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder]

Ungrouped