top of page
​Games Technologist
Mongoose - Search Database
So here I'm adding a snippets of code as I learn more about Mongoose and searching and displaying data overall; below is a small snippet of code for a new controller function in an existing project , searching the database based on the string sent from a web form (requiring req.body be used).
​
I'm considering the creation of a serach page rather than rerunning a list to the existing plants page, using the data model to display the data input into a object passed to the view to display the data.
​
I'll update this page later.

bottom of page