dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Auto-increment integer id with MongoDB #605

Open elad opened 9 years ago

elad commented 9 years ago

Hi,

According to the MongoDB documentation there's a way to implement auto-incrementing fields for it.

Is this implemented or otherwise supported in node-orm2? I thought using serial would work but it didn't.

jimtang9527 commented 9 years ago

++

dxg commented 9 years ago

Perhaps the MongoDB driver will need some work to support this. I don't use mongo though, so someone will need to write a PR.