ConditionDsl

condition {
"field1" eq "value1"
"field2" ne "value2"
"filed3" gt 1
"field4" lt 1
"field5" gte 1
"field6" lte 1
"field7" contains "value7"
"field8" isIn listOf("value8")
"field9" notIn listOf("value9")
"field10" between (1 to 2)
"field100" between 1 to 2
"field11" all listOf("value11")
"field12" startsWith "value12"
"field13" elemMatch {
"field14" eq "value14"
}
"field15".isNull()
"field16".notNull()
and {
"field3" eq "value3"
"field4" eq "value4"
}
or {
"field3" eq "value3"
"field4" eq "value4"
}
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun all()
infix fun String.all(value: List<Any>)
infix fun KCallable<*>.all(value: List<Any>)
Link copied to clipboard
fun and(block: ConditionDsl.() -> Unit)
Link copied to clipboard
infix fun <V> String.between(start: V): BetweenStart<V>
infix fun <V> String.between(value: Pair<V, V>)
infix fun <V> KCallable<*>.between(start: V): BetweenStart<V>
Link copied to clipboard
Link copied to clipboard
fun condition(condition: Condition)
Link copied to clipboard
infix fun String.contains(value: String)
infix fun KCallable<*>.contains(value: String)
fun String.contains(value: String, ignoreCase: Boolean = false)
Link copied to clipboard
fun deleted(value: Boolean)
Link copied to clipboard
infix fun String.elemMatch(block: ConditionDsl.() -> Unit)
infix fun KCallable<*>.elemMatch(block: ConditionDsl.() -> Unit)
Link copied to clipboard
infix fun String.endsWith(value: String)
infix fun KCallable<*>.endsWith(value: String)
fun String.endsWith(value: String, ignoreCase: Boolean = false)
Link copied to clipboard
infix fun String.eq(value: Any)
infix fun KCallable<*>.eq(value: Any)
Link copied to clipboard
infix fun String.gt(value: Any)
infix fun KCallable<*>.gt(value: Any)
Link copied to clipboard
infix fun String.gte(value: Any)
infix fun KCallable<*>.gte(value: Any)
Link copied to clipboard
fun id(value: String)
Link copied to clipboard
fun ids(vararg value: String)
fun ids(value: List<String>)
Link copied to clipboard
Link copied to clipboard
infix fun String.isIn(value: List<Any>)
infix fun KCallable<*>.isIn(value: List<Any>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.lt(value: Any)
infix fun KCallable<*>.lt(value: Any)
Link copied to clipboard
infix fun String.lte(value: Any)
infix fun KCallable<*>.lte(value: Any)
Link copied to clipboard
infix fun String.ne(value: Any)
infix fun KCallable<*>.ne(value: Any)
Link copied to clipboard
infix fun String.nested(block: ConditionDsl.() -> Unit)
infix fun KCallable<*>.nested(block: ConditionDsl.() -> Unit)
fun nested(nestedField: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun nor(block: ConditionDsl.() -> Unit)
Link copied to clipboard
infix fun String.notIn(value: List<Any>)
infix fun KCallable<*>.notIn(value: List<Any>)
Link copied to clipboard
Link copied to clipboard
fun or(block: ConditionDsl.() -> Unit)
Link copied to clipboard
fun raw(value: Any)
Link copied to clipboard
infix fun String.recentDays(days: Int)
infix fun KCallable<*>.recentDays(days: Int)
Link copied to clipboard
infix fun String.startsWith(value: String)
infix fun KCallable<*>.startsWith(value: String)
fun String.startsWith(value: String, ignoreCase: Boolean = false)
Link copied to clipboard
fun tenantId(value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun <V> BetweenStart<V>.to(end: V)
Link copied to clipboard
fun KCallable<*>.today()
Link copied to clipboard
Link copied to clipboard