Use MongoDB in a front-end application that runs on Node.JS through the Express framework.
I would like to know how to create protections against MongoDB "Injection" (similar to sql injection ).
Use MongoDB in a front-end application that runs on Node.JS through the Express framework.
I would like to know how to create protections against MongoDB "Injection" (similar to sql injection ).
I found the following descriptive in the SOen thread and found it interesting to share in your question:
The point is convert and interpret input data
MongoDB avoids potential problems of this type by not performing data conversions. It does not perform conversions in text structures to figure out what to do, so there is no possibility of misinterpretation of the data ...
This reference has an indicative link about supplemental reading to assist in writing safe code (if it is a concern).