ZIODocumentOps

zio.elasticsearch.package$.ZIODocumentOps
final implicit class ZIODocumentOps[R, F[_]](zio: RIO[R, DocumentResult[F]])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def documentAs[A : Schema]: RIO[R, F[A]]

Fetches and deserializes a document as a specific type.

Fetches and deserializes a document as a specific type.

Attributes

A

the type to deserialize the document to

Returns:

a RIO effect that, when executed, is going to fetch and deserialize the document as type A