QueryHandler

acolyte.reactivemongo.QueryHandler$
See theQueryHandler companion trait

Query handler companion.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete fields

Empty query handler, not handling any request.

Empty query handler, not handling any request.

Attributes

Implicits

Implicits

Creates a query handler from given function f.

Creates a query handler from given function f.

Attributes

f

Handling function, with arguments channel ID and query.

import reactivemongo.api.bson.BSONDocument
import acolyte.reactivemongo.{ Request, QueryHandler, QueryResponse }
val handler1: QueryHandler = // Returns a successful empty response
 (_: Request) => QueryResponse(Seq.empty[BSONDocument])