var fakery = require('mongoose-fakery'); fakery.g.fullname()); This returns a function instead of a value