QueryHandler

Query handler companion.

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete fields

Empty query handler, not handling any request.

Empty query handler, not handling any request.

Implicits

Implicits

Creates a query handler from given function f.

Creates a query handler from given function f.

Value parameters:
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])