Inspired from Gary Smith's article on escaping Mongo keys in Node.js.Just pass the document into the function, and your object will be escaped.I think its self explanatory.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool