Closed petersondrew closed 12 years ago
This isn't something being added by Mongolian. Perhaps some code you have/are requiring is modifying Object.prototype
?
What happens if you add any of these lines?
console.dir(objectToInsert)
console.dir(Object.prototype)
console.dir(objectToInsert.__proto__)
Also try grepping for gcd
in your project folder.
Ah, you're right. Very sorry about that. Looks like fluent-ffmpeg is polluting Object.prototype.
I'm noticing some odd behavior after switching from mongoose to mongolian. When saving a document, the document object in the insert callback looks just fine (looks just like the object I saved with the _id field added). However, in Mongo, there's an extra field tacked on to the end of my object called "gcd" and it looks like a javascript function definition. Any ideas?
So here's the document as I save it and as it's returned to me in the callback to collection.insert
And here's how it looks when running find from the mongo shell
Here's some system info