Fetching

FileName: appview.js

var mongoose = require('mongoose');
var database = require('./database');
var users = require('./users');
var games = require('./games');
var loginsesion = require('./loginsession');
var gameplaylogs = require('./gameplaylogs');
var address = require('./address');

var Schema = mongoose.Schema;
database.init();

var callback = function(err,data){
	
	if(err)
		console.log(err);
	else
		console.log(data);
		
}	
UserModel.find({},callback);
AddressModel.find({},callback)
LoginsessionModel.find({},callback);
GamesModel.find({},callback);
GameplaylogsModel.find({},callback);

>_Run the appview.js

  1. open the command prompt or shell
  2. goto the path where the app.js existed (like /home/meanapp/ or d:/meanapp)
  3. Now Run This command
    node appview.js
  4. If you done the execution of app.js then with the run we will get data in array (raw) manner in the console.