Case: when spawning new dev-environments, I would like to go through some collections and change TLD's in certain string-values, so e.g. "bla bla mydomain.com" becomes "bla bla mydomain.localhost".
I tried simply in patch-window in Raven Studio:
this.MyProperty = this.MyProperty.replace(".com", ".localhost");
But I got:
TypeError: Property 'replace' of object is not a function
After that I went to the docs, where indeed it seems string-replacement is not an option.
My question is: is it possible in any way to do string-replacement in js-patches in RavenDB?