maritz / nohm

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

Make id internal with a getter to read it #170

Open maritz opened 3 years ago

maritz commented 3 years ago

Currently .id is a readable and writable property. This has lead to confusion and problems before.

The better way to deal with it is probably to make .id completely internal and only allow access via a getter.

Additional documentation is then required to describe how to have your own "secondary" id mechanism.