enrichz
enrichz
I'm very interested in this feature, thanks for your work guys. +1
Thank you @vkarpov15 How can I get the fix in my project? Will this be in the next release?
This is how you handle errors: ``` javascript Model.create(obj, function(err, insertedObj) { if (err) { // handle error } else { // the object was inserted } }); ```
I don't think you can do what you want, and also I would not advice to do that. I think it's a good idea to handle the errors separately. What...
The third is the correct way to go, if someString is something like this: 577ce4cc38aba07c24fb04ce. Also, make sure that in your code you have (javascript code): var mongoose = require('mongoose');...
Thanks @vkarpov15 the workaround works fine. Are you planning to fix this behaviour or should I adopt the workaround as a permanent solution? In the case you plan to fix...
Sorry for the late reply. I actually tried to recreate the error but I couldn't do it and I don't have the original scenario because I used the workaround you...
From the MongoDB documentation: ObjectId() Returns a new ObjectId value. The 12-byte ObjectId value consists of: - a 4-byte value representing the seconds since the Unix epoch, - a 3-byte...
@onlyoneice can you provide the full code?
It works fine this way thank you. Also it seems faster :)