In find function first parameters is query condition then apply callback.
so you should use query condition {}
to get all records or can apply your query. so should use NickiNumber.find({}, function(...
Query should be like:
var express = require('express');var router = express.Router();var NickiNumber = require('../models/nickinumbers');router.get('/', function(req, res) { NickiNumber.find({}, function(err, nums) { if (err) return console.error(err); res.render('index', {title: 'Users', nums: nums}); }); });module.exports = router;