I wish to use a JS function in an aggregate : String.prototype.normalize. From what I can see, it doesn't exist in mongo. I found a polyfill that is available on npm : unorm
Is there a way to add into mongo without having to copy/past the source ?