I'm trying to run this simple code in my node+express code
mongoose.model('Package').find(query, function(err, package) {.....
and it fails with
mongoose.model('Package').find(query, function(err, package) {.....
^^^^^^
and I don't know why. It works if I change the variable name from "package" to something else.
There is too much code to copy paste here, but I guess this must be something rather basic I'm doing wrong since a variable name change solves it. What could the problem be?