petersirka / nosql

NoSQL embedded database for small node.js projects
Other
295 stars 48 forks source link

What can I use to find a max id [QUESTION] #37

Closed biomade closed 7 years ago

biomade commented 7 years ago

I see in the sample code, in the documentation for the Builder that find can have builder.between(); what other operations can be done? I am looking for a max or last.. so I can grab an id and then add one to it for a pseudo autoincrement.

biomade commented 7 years ago

I found it [the scalar call] but now I have a different question... along the same lines. If I can get the max(id) how can I pass it to another insert call?

petersirka commented 7 years ago