How do I set different TTL for each document in one mongodb collection using mongoose?

前端 未结 0 721
盖世英雄少女心
盖世英雄少女心 2021-01-11 22:11

I tried doing it this way, but it doesn\'t work

const newDoc = new someMongooseModel({
    someKey: someValue,

    expireAt: {
        type: Date,
        in         


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