dave08
04/11/2024, 10:07 AMflatZip
composition queries? Maybe there should be a flatZipNotNull
?Toshihiro Nakamura
04/11/2024, 12:23 PMflatZipNotNull
? Could you show me an example of the code?dave08
04/11/2024, 12:27 PMval q = QueryDsl.from(f)
.where { ... }
.firstOrNull()
.flatZipNotNull {
// If result of firstOrNull is null the result of q is null, otherwise run second request with a non-null value
}
dave08
04/11/2024, 12:28 PMit
in flatZip other than using !! and catching the exception to return null
as the result... 🙈Toshihiro Nakamura
04/11/2024, 12:49 PM