Closed jeans11 closed 1 year ago
Are you referring to examples like this?
(def ID
[:and {:gen/gen monotonic-id-gen} pos-int?])
If you are, then the short answer is yes :) You could have something like (def ID uuid?)
. The longer answer is that it would probably be helpful to read malli's docs, as they more better explain what's going on here.
Thanks @flyingmachine.
Hi! Can an ID be other than an
integer
. Maybe anUUID
orObjectId
?