Simple pipeline operations for mongoose.