in reply to MongoDB Stored procedure from Dancer2
According to MongoDB::Tutorial, you are supposed to not pass in _id at all to have MongoDB issue the id. If you want to hand out ids from a specific sequence, I don't know how to do that though.
I don't find any mention of "stored procedure" in the MongoDB distribution. I don't know how the API, and the closest I found was some random blog post on how to call server-side Javascript from Python. Most likely you have to send the same/similar data structure to make MongoDB do your bidding from Perl.
Update: See below for the official documentation on how to create an autoincrement field with MongoDB.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MongoDB Stored procedure from Dancer2
by actarus2003 (Novice) on Mar 28, 2017 at 15:47 UTC | |
by poj (Abbot) on Mar 28, 2017 at 17:51 UTC | |
by actarus2003 (Novice) on Mar 29, 2017 at 10:21 UTC | |
by actarus2003 (Novice) on Nov 06, 2017 at 16:39 UTC | |
by Corion (Patriarch) on Mar 28, 2017 at 16:16 UTC |