79705954

Date: 2025-07-18 09:24:43
Score: 3
Natty:
Report link

There is an article here that describes how to setup an auto increment on save using database triggers. Basically it uses a separate counter collection, similar to what @AndrewL suggests, to track the value and updates the document on insert

https://www.mongodb.com/resources/products/platform/mongodb-auto-increment

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @AndrewL
  • Low reputation (1):
Posted by: user31077234