sample value in DB: one-two-three.js
Need to format like this: one two three
I split the field using $split aggregate, but after this how to replace "-" with " " ?
replaceAll("-", " ")
$push: {
name: {$arrayElemAt:[{$split: ["$name" , "."]}, 0]},
}