Sort of a mongo noob, and I have a feeling I am tackling this problem from the wrong direction.
I have about a 7 million document collection. Each document has two fields that I want to modify (not replace), basically they are big strings that have \\n
, and I want to replace those with \n
.
I spent about an hour trying to find a way to "back reference" the object returned by the query, which totally doesn't exist. What is the best approach for something like this?