Virtuals-in-Mongoose Download code and type node Server.js Visit localhost:3000 to view running app. Hit POST API localhost:3000/restaurants to add sample restaurant. Visit localhost:3000/restaurants from your browser to see list of all restaurant with 'isOpen' virtual field.