Output results from select query in MongoDB using NodeJS HTML webpage

Hi all,

I have the following queries I am running a project for my university and I need some advice.

db.Schools.find({"Gender": {'$regex': 'Mixed'}, "Statutory lowest age":{$lt:6}, 
  				 "Statutory highest age":{$gt:18}, "Website address": {'$regex': 'http'}}, {"_id": 0, "Gender": 1, "Statutory highest age": 1,
  				 "Statutory lowest age": 1, "Website address": 1} );
  				 
db.Schools.find({"Boarders": {'$regex': 'No B'}, "Gender": {'$regex': 'Mixed'}, "Town": {'$regex': 'London'}}, {"_id": 0, "Boarders": 1, "Gender": 1, "Town": 1});

db.Schools.find({});

I would like to display the results in the console.log when the html page loads up when I click F12… how would this be possible through Node JS and Mongoose?

I look forward to hearing from you all soon

Any tips?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.