MaybeFound

zio.dynamodb.syntax.MaybeFound
implicit class MaybeFound[R, A](zio: ZIO[R, DynamoDBError, Either[ItemError, A]])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Moves Left[ItemError.DecodingError] to the error channel and returns Some(a) if the item is found else None eg

Moves Left[ItemError.DecodingError] to the error channel and returns Some(a) if the item is found else None eg

 DynamoDBQuery.get("table")(Person.id.partitionKey === 1).execute.maybeFound 

Attributes