Closed CLOVIS-AI closed 2 years ago
@Serializable class Foo( @SerialName("_id") val id: Id<Foo>, val counter: ULong, )
Trying to increase the counter:
foo.updateOne(Foo::id eq id, inc(Foo::counter, 1))
fails with:
Type mismatch. Required: Number? Found: ULong
It seems like ULong & co do not inherit from Number, so it is not possible to increment them easily using the API.
ULong
Number
Thank you for reporting. I fix it.
Trying to increase the counter:
fails with:
It seems like
ULong
& co do not inherit fromNumber
, so it is not possible to increment them easily using the API.