I have documents like this in Mongoose (MongoDb):
{
begin: Date,
end: Date
}
All I'd like to do is to:
- Select all documents with
end == null - and then update them using
end ="begin increased by 10 days"
How can it be done within just a single update?