node-orm2 icon indicating copy to clipboard operation
node-orm2 copied to clipboard

Auto-increment integer id with MongoDB

Open elad opened this issue 10 years ago • 2 comments

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.

elad avatar Jan 19 '15 01:01 elad

++

jimtang9527 avatar Jul 20 '15 03:07 jimtang9527

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.

dxg avatar Jul 21 '15 15:07 dxg