Hey, how can I replace all occurences of a string in a field?
I tried using $replaceAll and $regexReplace and few other commands but the value in the end is an object field with the literal command, not the evaluated regex replace.
Please help.
and FYI the query "$regex" seems to work fine, only the matching doc is updated.
the update section is the issue
Hey, how can I replace all occurences of a string in a field? I tried using $replaceAll and $regexReplace and few other commands but the value in the end is an object field with the literal command, not the evaluated regex replace. Please help. and FYI the query "$regex" seems to work fine, only the matching doc is updated. the update section is the issue
script:
value updated: