WriteHandler

Write 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 write handler from given function f.

Creates a write handler from given function f.

Value parameters:
f

Handling function, with arguments channel ID and write request.

import acolyte.reactivemongo.{
 Request, WriteHandler, WriteOp, WriteResponse
}
val handler: WriteHandler = WriteHandler {
 // Returns a successful for 1 doc
 (_: WriteOp, _: Request) => WriteResponse(1 -> false)
}