I believe its something in the ejs templates, if i don't use them its fine. I rewrote the pages using jade, it works perfectly.
I did try using quotes and no quotes with the call to find the _id, it works either way.
It has to be something in how the ejs templates do things, I was able to step thru the code using webstorm and even into the mongo client code, I could not see anything that would throw this off.
I had at one point console.log my json objects before rendering the page, the exception would occur after that, the objects were there.
My one main thing I wanted to know is what's the right way to handle the connection, and opening, closing, and getting things in an out of mongodb thru this, googling code examples yields way too many different ways of this, some work, some don't.
Even mongos docs are not quite right.
I will keep hacking on this, once I have it, I think I will post a full example of a simple crud app hitting common things you would need to do, there seems to be very little out there, just examples that take you just barely to getting this working, as if lots of guys just gave up lol.
I am a bit new to this, I got tired of .net and wanted to give this a try, no one told me it would be like coder crack lol.
If anyone can offer any other suggestions I am game for them.