Java 在Spring Boot&;蒙哥达
我是SpringBoot和MongoDb的新手, 我有一份文件,如:Java 在Spring Boot&;蒙哥达,java,mongodb,spring-boot,Java,Mongodb,Spring Boot,我是SpringBoot和MongoDb的新手, 我有一份文件,如: { "_id" : ObjectId("609a33c509bdea32555b6b87"), "title" : "test", "text" : "test text", "opened" : true, "reserved"
{
"_id" : ObjectId("609a33c509bdea32555b6b87"),
"title" : "test",
"text" : "test text",
"opened" : true,
"reserved" : true,
"createDate" : ISODate("2021-05-11T07:35:33.098Z"),
"updateDate" : ISODate("2021-05-11T07:35:40.770Z")
}
我想用updateDate>(createDate+1个月)
请帮助我提供建议或一些代码示例?您好,这可能有助于您添加筛选选项,然后添加项目字段