PlayQ / d4s

Dynamo DB Database Done Scala-way
Apache License 2.0
29 stars 6 forks source link

Add `notNull` and `isNull` conditions #272

Closed aliubymov-playq closed 3 years ago

aliubymov-playq commented 3 years ago

Currently we need to write something like this:

.withFilterExpression(Condition.raw("recipients = :null") OR "recipients".notExists OR "recipients".of[UUID].contains(user.user))
.withAttributeValues(Map(":null" -> AttributeValue.builder().nul(true).build()))