maritz / nohm

node.js object relations mapper (orm) for redis
http://maritz.github.io/nohm/
MIT License
500 stars 64 forks source link

Add option to define a property as numeric with custom type (behavior) #179

Open maritz opened 2 years ago

maritz commented 2 years ago

Currently setting a custom type function (called behavior in docs) means that it cannot be recognized as a numeric index. For things like a createdAt property that is supposed to be read-only, this is a problem.