syntax

io.github.mbannour.fields.MongoPath.syntax
object syntax

Syntax helpers for transparent Option hops inside selector lambdas.

The .? method lets you write _.opt.?.field to mean "walk into the option when present" without contributing anything to the resulting path. It is defined inline and its body is never evaluated.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
syntax.type

Members list

Extensions

Extensions

extension [A](inline opt: Option[A])
inline def ?: A

Transparent hop over Option in a field selector lambda. See MongoPath docs.

Transparent hop over Option in a field selector lambda. See MongoPath docs.

Attributes