How to auto-increment a particular attribute in mongodb while defining in mongoose?

后端 未结 0 1990
别跟我提以往
别跟我提以往 2021-02-13 07:20

I\'m creating a model in which i want a particular attribute (say incAttr: Number) to be auto-incremented with its initial value as 0. My pseudo code will looks something like t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题